/* ── Scoping ────────────────────────────────────────────────────────
   All styles live under .arc so they don't leak into the WP theme.
   The source design used global *, html, body resets; those are
   re-scoped to .arc here (no html/body restyling on the host page). */

.arc, .arc *, .arc *::before, .arc *::after { box-sizing: border-box; margin: 0; padding: 0; }

.arc {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f3f4f6; color: #1f2328; font-size: 13px;
  padding: 16px 20px 40px;
}
.arc .container { max-width: 860px; margin: 0 auto; }

/* HEADER */
.arc .header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.arc .header svg { height: 46px; width: auto; }
.arc .header-divider { width: 1px; height: 44px; background: #d0d7de; }
.arc .header-title h1 { font-size: 22px; font-weight: 700; color: #1f2328; line-height: 1.15; }
.arc .header-title h1 .h1-sub { display: block; font-size: 16px; font-weight: 600; color: #1f2328; margin-top: 1px; }
.arc .header-title p  { font-size: 12px; color: #57606a; margin-top: 3px; }

/* STEP NAV */
.arc .stepnav { display: flex; gap: 8px; margin-bottom: 16px; }
.arc .stepnav button {
  flex: 1; background: #fff; border: 1px solid #d0d7de; border-radius: 8px;
  padding: 9px 12px; font-size: 12px; font-weight: 600; color: #57606a;
  cursor: pointer; transition: all .15s; display: flex; align-items: center; gap: 8px; justify-content: center;
}
.arc .stepnav button .num {
  width: 18px; height: 18px; border-radius: 50%; background: #eaeef2; color: #57606a;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.arc .stepnav button.active { border-color: #bf8700; color: #1f2328; box-shadow: 0 1px 4px rgba(191,135,0,.12); }
.arc .stepnav button.active .num { background: #ffcc43; color: #1f2328; }

.arc .page { display: none; }
.arc .page.active { display: block; }

/* CARD */
.arc .card { background: #fff; border: 1px solid #e1e4e8; border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; }
.arc .card-head { font-size: 14px; font-weight: 700; color: #1f2328; margin-bottom: 4px; }
.arc .card-sub  { font-size: 11px; color: #57606a; margin-bottom: 12px; line-height: 1.5; }

/* PULSE MESSAGE */
.arc .pulse-msg {
  background: linear-gradient(135deg, #fffbeb, #fff); border: 1px solid rgba(191,135,0,.3);
  border-radius: 10px; padding: 12px 16px; margin-bottom: 12px;
}
.arc .pulse-msg .tag {
  display: inline-block; background: #ffcc43; color: #1f2328; border-radius: 4px;
  padding: 1px 7px; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px;
}
.arc .pulse-msg p { font-size: 12px; color: #444c56; line-height: 1.6; }

/* CORE INPUTS */
.arc .core-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px){ .arc .core-grid { grid-template-columns: 1fr; } }
.arc .field-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #57606a; margin-bottom: 6px; }
.arc .field-label small { display:block; font-weight: 400; text-transform: none; letter-spacing: 0; color: #8c959f; margin-top: 2px; }
.arc .num-wrap { display: flex; align-items: center; gap: 6px; }
.arc .num-wrap .prefix, .arc .num-wrap .suffix { font-size: 12px; color: #57606a; flex-shrink: 0; }
.arc input[type="number"] {
  background: #f6f8fa; border: 1px solid #d0d7de; border-radius: 7px;
  padding: 8px 10px; font-size: 15px; font-weight: 700; color: #1f2328;
  outline: none; transition: border-color .15s; width: 100%; max-width: 130px;
}
.arc input[type="number"]:focus { border-color: #0969da; background:#fff; }
.arc input[type="number"]:disabled { opacity: .4; cursor: not-allowed; }

/* labor toggle */
.arc .toggle-row { display: inline-flex; background: #eaeef2; border-radius: 7px; padding: 2px; margin-bottom: 8px; }
.arc .toggle-row button {
  border: none; background: transparent; font-size: 11px; font-weight: 600; color: #57606a;
  padding: 5px 12px; border-radius: 5px; cursor: pointer; transition: all .15s;
}
.arc .toggle-row button.active { background: #fff; color: #1f2328; box-shadow: 0 1px 2px rgba(0,0,0,.1); }

/* EXISTING SPEND */
.arc .sub-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 9px; border: 1px solid #e1e4e8; border-radius: 7px; margin-bottom: 5px; transition: all .15s; }
.arc .sub-row:has(input[type=checkbox]:checked) { background: #f0fdf4; border-color: rgba(26,127,55,.35); }
.arc .sub-label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.arc .sub-label input[type=checkbox] { width: 15px; height: 15px; accent-color: #1a7f37; cursor: pointer; }
.arc .sub-name { font-size: 12px; color: #1f2328; }
.arc .sub-amt { display:flex; align-items:center; gap: 2px; }
.arc .sub-amt .prefix, .arc .sub-amt .suffix { font-size: 11px; color: #57606a; }
.arc .sub-amt input[type=number] { width: 78px; max-width: 78px; font-size: 12px; padding: 4px 6px; text-align: right; }
.arc .spend-total { text-align: right; font-size: 12px; color: #57606a; margin-top: 6px; padding-top: 6px; border-top: 1px solid #e1e4e8; }
.arc .spend-total b { color: #1a7f37; }

/* VALUE DRIVER CARDS */
.arc .wf { border: 1px solid #e1e4e8; border-radius: 10px; margin-bottom: 10px; background:#fff; overflow:hidden; transition: border-color .2s; }
.arc .wf.on { border-color: rgba(26,127,55,.4); }
.arc .wf-head { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; cursor: pointer; }
.arc .wf-head .switch { margin-top: 1px; flex-shrink: 0; }
/* switch */
.arc .switch input { display: none; }
.arc .switch label { display: block; width: 34px; height: 19px; background: #d0d7de; border-radius: 19px; position: relative; cursor: pointer; transition: background .2s; }
.arc .switch label::after { content:''; position:absolute; top: 2px; left: 2px; width: 15px; height: 15px; background:#fff; border-radius:50%; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.arc .switch input:checked + label { background: #1a7f37; }
.arc .switch input:checked + label::after { transform: translateX(15px); }
.arc .wf-head-text { flex: 1; min-width: 0; }
.arc .wf-title { font-size: 13px; font-weight: 700; color: #1f2328; }
.arc .wf-desc { font-size: 11px; color: #57606a; margin-top: 2px; line-height: 1.45; }
.arc .wf-tags { display:flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.arc .wf-tag { font-size: 10px; padding: 1px 6px; border-radius: 4px; background: #eef2f6; color: #57606a; border: 1px solid #e1e4e8; }
.arc .wf-val { font-size: 14px; font-weight: 800; color: #8c959f; flex-shrink: 0; white-space: nowrap; }
.arc .wf.on .wf-val { color: #1a7f37; }
.arc .wf-body { padding: 0 14px 14px; display: none; }
.arc .wf.on .wf-body { display: block; }
.arc .wf-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin-top: 4px; }
@media (max-width: 640px){ .arc .wf-inputs { grid-template-columns: 1fr; } }
.arc .wf-input label { font-size: 11px; color: #444c56; display:block; margin-bottom: 4px; }
.arc .wf-input .num-wrap input { max-width: 110px; font-size: 14px; padding: 6px 8px; }
.arc .wf-note { font-size: 11px; color: #57606a; background: #f6f8fa; border-left: 2px solid rgba(191,135,0,.4); border-radius: 4px; padding: 8px 11px; margin-top: 10px; line-height: 1.5; }
.arc .wf-formula { font-size: 11px; color: #8c959f; margin-top: 8px; font-style: italic; }

/* CTA */
.arc .cta { display: flex; justify-content: flex-end; margin-top: 16px; }
.arc .cta button { background: #1f2328; color:#fff; border:none; border-radius: 8px; padding: 11px 20px; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .15s; }
.arc .cta button:hover { background: #000; }
.arc .cta.back button { background: #fff; color: #57606a; border: 1px solid #d0d7de; }
.arc .cta.back button:hover { background: #f6f8fa; }
.arc .cta-split { display:flex; justify-content: space-between; align-items:center; margin-top: 16px; }

/* RESULTS */
.arc .metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 14px; }
@media (max-width: 640px){ .arc .metrics { grid-template-columns: 1fr; } }
.arc .metric { background:#fff; border:1px solid #e1e4e8; border-radius: 10px; padding: 18px 14px; text-align:center; }
.arc .metric.hero { background: linear-gradient(135deg,#f0fdf4,#fff); border-color: rgba(26,127,55,.3); }
.arc .metric .m-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color:#57606a; margin-bottom: 8px; }
.arc .metric .m-val { font-size: 30px; font-weight: 800; line-height: 1; }
.arc .metric .m-val.green { color:#1a7f37; } .arc .metric .m-val.orange{color:#bf8700;} .arc .metric .m-val.gray{color:#8c959f;}
.arc .metric .m-sub { font-size: 11px; color:#57606a; margin-top: 6px; }

.arc .breakdown { background:#fff; border:1px solid #e1e4e8; border-radius:10px; padding: 14px 16px; }
.arc .breakdown h3 { font-size: 12px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:#57606a; margin-bottom: 10px; }
.arc .bd-row { display:flex; justify-content: space-between; align-items:center; padding: 7px 0; border-bottom: 1px solid #f3f4f6; font-size: 12px; }
.arc .bd-row:last-of-type { border-bottom: none; }
.arc .bd-row .bd-name { color:#444c56; }
.arc .bd-row .bd-val { font-weight: 700; color:#1f2328; }
.arc .bd-row.one-time .bd-name::after { content:' (one-time)'; color:#8c959f; font-weight:400; font-size:10px; }
.arc .bd-total { display:flex; justify-content: space-between; align-items:center; padding-top: 10px; margin-top: 4px; border-top: 2px solid #e1e4e8; font-size: 13px; font-weight: 800; }
.arc .bd-total .green { color:#1a7f37; }
.arc .bd-empty { font-size: 12px; color:#8c959f; text-align:center; padding: 14px 0; }
.arc .disclaimer { font-size: 11px; color:#8c959f; line-height:1.6; margin-top:14px; text-align:center; }
