.tool-page { padding-block: clamp(20px, 4vw, 48px) 56px; max-width: 920px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--mint-ink); }
.tool-hero h1 { margin: 0 0 14px; font-size: clamp(36px, 5vw, 56px); line-height: 1.08; }
.tool-lead { max-width: 62ch; font-size: 18px; line-height: 1.6; color: #3b4658; margin: 0 0 28px; }
.tool-single { grid-template-columns: minmax(0, 620px); margin-bottom: 36px; }
.tool-cta, .tool-guide, .tool-faq, .tool-more { margin-block: 40px; }
.tool-cta h2, .tool-guide h2, .tool-faq h2, .tool-more h2 { font-size: 28px; margin: 0 0 14px; }
.cta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 18px; }
.cta-card { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; padding: 18px; background: #eef2e6; border: 1px solid #d9e3d5; text-decoration: none; color: var(--ink); }
.cta-card img { width: 120px; height: auto; box-shadow: 0 10px 22px rgba(30, 41, 59, .2); }
.cta-card > span { display: grid; gap: 8px; justify-items: start; }
.cta-card em { font-style: normal; color: var(--mint-ink); font-size: 15px; }
.cta-card .buy-button { display: inline-flex; width: auto; min-height: 44px; align-items: center; padding: 0 18px; background: #17634f; color: #fff; border-radius: 0; font-size: 15px; }
.cta-card .bundle-badge { margin: 0; }
.tool-guide section { margin-bottom: 26px; }
.tool-guide h2 { font-family: Georgia, serif; font-weight: 400; }
.tool-guide p { max-width: 68ch; font-size: 17px; line-height: 1.7; margin: 0 0 14px; }
.tool-faq details { border-top: 1px solid var(--border); padding: 14px 0; }
.tool-faq details:last-of-type { border-bottom: 1px solid var(--border); }
.tool-faq summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.tool-faq p { max-width: 68ch; line-height: 1.65; color: #3b4658; margin: 4px 0 4px; }
.tool-more ul { padding-left: 18px; line-height: 2; }
.tool-more a { color: var(--mint-ink); }
.tool-disclaimer { font-size: 13px; color: var(--muted); }
@media (max-width: 520px) { .cta-card { grid-template-columns: 90px 1fr; } .cta-card img { width: 90px; } }

/* Calendar tool (scoped copy of the member-page rules) */
.tool-calendar { margin-bottom: 36px; }
.tool-calendar .intro { max-width: 62ch; }
.tool-calendar .calendar-actions { background: #edf7f2; padding: 18px; border-radius: 12px; }
.tool-calendar .upload, .tool-calendar .calendar-page label { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 12px; border: 1px solid #798d85; border-radius: 5px; font-weight: 600; cursor: pointer; background: #fff; }
.tool-calendar input[type=file] { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.tool-calendar .upload:focus-within, .tool-calendar .calendar-page label:focus-within { outline: 3px solid #14604c; outline-offset: 3px; }
.tool-calendar button { min-height: 44px; padding: 8px 16px; border: 1px solid #798d85; background: var(--paper); color: inherit; border-radius: 5px; font: inherit; cursor: pointer; }
.tool-calendar button:disabled { opacity: .65; cursor: progress; }
.tool-calendar .primary { background: var(--mint); border-color: #247c66; font-weight: 650; }
.tool-calendar #calendar-pages { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; margin-block: 24px 28px; }
.tool-calendar .calendar-page { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.tool-calendar .calendar-page canvas { display: block; width: 100%; height: auto; margin-bottom: 10px; border: 1px solid var(--border); }
.tool-calendar section { margin-block: 20px; }
.tool-calendar h2 { font-size: 22px; margin: 0 0 8px; font-family: Georgia, serif; font-weight: 400; }
.tool-calendar input:not([type=file]) { display: block; width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid #798d85; border-radius: 5px; font: inherit; }
.tool-calendar form label { display: block; margin: 12px 0; }
.tool-calendar dialog { max-width: min(460px, calc(100vw - 30px)); border: 1px solid var(--border); border-radius: 12px; padding: 20px; color: var(--ink); }
.tool-calendar dialog::backdrop { background: rgb(30 41 59 / .45); }

.np-steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; margin: 0 0 24px; padding: 0; }
.np-steps li { display: grid; gap: 4px; padding: 14px 16px; background: #fff1cc; border: 1px solid #ebc96f; color: #4a3508; }
.np-steps a { color: #4a3508; font-weight: 600; }
.np-steps .link-button { min-height: 44px; padding: 0; border: 0; background: none; color: #4a3508; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }

/* ---- Freelance Hourly Rate Calculator ---- */
.tool-rate { grid-template-columns: minmax(0, 720px); }
.tool-rate output.rate-output { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; background: transparent; padding: 0; }
.tool-rate output span { display: grid; padding: 14px 16px; background: #edf7f2; border-radius: 12px; font-size: 14px; color: var(--muted); }
.tool-rate output .rate-main { background: #fff7e3; border: 1px solid #f1dca4; }
.tool-rate output .rate-main strong { font-size: 34px; line-height: 1.1; color: var(--ink); }
.tool-rate output strong { font-size: 20px; }
.rate-preview { margin-top: 8px; padding: 18px; background: #fafaf9; border: 1px solid var(--border); border-radius: 14px; }
.rate-preview h4, .rate-upsell h4 { margin: 0 0 6px; font: 1.3rem Georgia, serif; }
.payday { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.payday li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 15px; }
.payday li strong { margin: 0; font-size: 15px; color: var(--ink); }
.payday li i { grid-column: 1 / -1; display: block; height: 8px; border-radius: 999px; background: #3BBA9C; min-width: 2px; transition: width .25s; }
.payday li[data-k="expenses"] i, .payday li[data-k="reserve"] i { background: #E8A838; }
.rate-upsell { display: grid; grid-template-columns: 110px 1fr; gap: 20px; align-items: center; margin-top: 24px; padding: 20px; background: #eef2e6; border: 1px solid #d9e3d5; border-radius: 16px; box-shadow: 0 8px 22px rgba(30, 41, 59, .08); }
.rate-upsell img { width: 110px; height: auto; border-radius: 6px; box-shadow: 0 10px 22px rgba(30, 41, 59, .2); }
.rate-upsell p { margin: 0 0 10px; line-height: 1.55; }
.rate-upsell .eyebrow { margin-bottom: 6px; }
.rate-upsell .rate-price { color: var(--mint-ink); font-size: 15px; }
.rate-upsell .bundle-badge { display: inline-block; margin-top: 6px; }
.rate-upsell .buy-button { display: inline-flex; min-height: 44px; align-items: center; padding: 0 18px; background: #17634f; color: #fff; border-radius: 0; }
@media (max-width: 560px) { .rate-upsell { grid-template-columns: 1fr; } .rate-upsell img { width: 96px; } }
@media (prefers-reduced-motion: reduce) { .payday li i { transition: none; } }

/* ---- Debt Snowball vs. Avalanche Calculator ---- */
.tool-debt { grid-template-columns: minmax(0, 860px); }
.debt-rows { display: grid; gap: 14px; }
.debt-row { display: grid; grid-template-columns: 1.3fr 1fr .8fr 1fr auto; gap: 10px; align-items: end; padding: 14px; background: #fafaf9; border: 1px solid var(--border); border-radius: 12px; }
.debt-row label { font-size: 14px; color: var(--muted); }
.debt-remove, .debt-add, .debt-switch button { min-height: 44px; padding: 0 16px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1px solid #8e9c95; border-radius: 8px; cursor: pointer; }
.debt-add { justify-self: start; }
.debt-remove:disabled, .debt-add:disabled { opacity: .45; cursor: not-allowed; }
.debt-extra { max-width: 420px; }
.debt-results[hidden] { display: none; }
.debt-results { display: grid; gap: 18px; }
.debt-verdict { margin: 0; padding: 14px 16px; background: #fff7e3; border: 1px solid #f1dca4; border-radius: 12px; font-weight: 600; line-height: 1.5; }
.debt-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.debt-col { padding: 16px; background: #edf7f2; border-radius: 12px; }
.debt-col h4, .debt-detail h4 { margin: 0; font: 1.3rem Georgia, serif; }
.debt-sub { margin: 2px 0 10px; color: var(--muted); font-size: 14px; }
.debt-col dl { display: grid; gap: 2px; margin: 0; }
.debt-col dt { font-size: 13px; color: var(--muted); margin-top: 8px; }
.debt-col dd { margin: 0; font-size: 18px; font-weight: 700; color: var(--mint-ink); }
.debt-detail { padding: 16px; background: #fafaf9; border: 1px solid var(--border); border-radius: 12px; }
.debt-switch { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.debt-switch button[aria-pressed="true"] { background: #17634f; border-color: #17634f; color: #fff; }
.debt-order { margin: 10px 0 14px; padding-left: 22px; display: grid; gap: 6px; }
.debt-order li strong { display: block; font-size: 14px; color: var(--mint-ink); }
.debt-bars { display: flex; align-items: flex-end; gap: 4px; height: 90px; padding-top: 4px; }
.debt-bars i { flex: 1; display: block; background: #3BBA9C; border-radius: 4px 4px 0 0; }
.debt-upsell { margin-top: 8px; }
@media (max-width: 700px) {
  .debt-row { grid-template-columns: 1fr 1fr; }
  .debt-row > label:first-child { grid-column: 1 / -1; }
  .debt-remove { grid-column: 1 / -1; justify-self: start; }
  .debt-compare { grid-template-columns: 1fr; }
}
