/* ============================================================
   the free tools — /tools/proposal-generator, /tools/freelance-rate-calculator
   2026-11-23, from the owner's SEO batch 2, in the website's dark type and
   colours; every rule sits under .tool so nothing reaches the site's header
   or footer. The proposal generator was redesigned the same day at the
   owner's ask: one workspace (form left, live page right, no dead space),
   the proposal laid out like didote's own PDF proposal page (the "editorial"
   theme: cream paper, brown kicker, numbered sections), the site's own
   dropdowns (js/tools/ui.js) instead of the system menu, and the long text
   under the tool cut to a call to action and a few questions. The rate
   calculator followed: the same workspace, its result as a rate with three
   tiles, a bar of where the revenue goes and the division written out.
   ============================================================ */

/* Plus Jakarta Sans 400-800 (one variable file per subset, the app's own,
   from /fonts/app.css): /fonts/site.css only declares 800, so the proposal
   page's body text came out heavy. */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/files/plus-jakarta-sans-e2e017e1ca.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/files/plus-jakarta-sans-3c95116254.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

.post-crumbs {
  max-width: calc(1080px + 2 * var(--gutter)); margin: 0 auto;
  padding: clamp(118px, 10vw, 160px) var(--gutter) 0;
  font-size: 13px; color: rgb(150, 156, 166);
}
.post-crumbs--tool { max-width: calc(1240px + 2 * var(--gutter)); }
.post-crumbs a { color: rgb(150, 156, 166); }
.post-crumbs a:hover { color: var(--white); }

.tool {
  --line: rgb(38, 41, 46);
  --field: rgb(14, 15, 18);
  --card: rgb(12, 13, 15);
  --soft: rgb(150, 156, 166);
  max-width: calc(1080px + 2 * var(--gutter)); margin: 0 auto;
  padding: 18px var(--gutter) clamp(40px, 5vw, 72px);
  color: rgb(214, 217, 222);
}
/* the site footer opens with up to 345px of air, sized for the homepage's
   finale; under a tool that left a ~350px hole (owner: "there is a huge gap here") */
.site-footer { padding-top: clamp(48px, 6vw, 96px); }
.tool--pg { max-width: calc(1240px + 2 * var(--gutter)); }
.tool > header h1 { margin: 0 0 14px; font-size: clamp(32px, 4vw, 52px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; color: var(--heading); }
.tool > header p { max-width: 720px; margin: 0 0 32px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; color: var(--muted); }

/* fields, shared by both tools */
.tool fieldset { margin: 0 0 10px; padding: 0; border: 0; min-width: 0; }
.tool legend { margin-bottom: 2px; padding: 0; font-size: 15px; font-weight: 600; color: var(--heading); }
.tool label { display: block; margin: 14px 0 6px; font-size: 14px; font-weight: 600; color: var(--heading); }
.tool .hint { font-weight: 400; font-size: 13px; color: var(--soft); }
.tool input, .tool textarea, .tool .ts-btn {
  width: 100%; padding: 10px 12px;
  font: inherit; font-size: 15px; color: var(--white);
  border: 1px solid var(--line); border-radius: 10px; background: var(--field);
}
.tool textarea { resize: vertical; line-height: 1.5; }
.tool input::placeholder, .tool textarea::placeholder { color: rgb(110, 115, 124); }
.tool input:focus, .tool textarea:focus, .tool .ts-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.tool .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* numbers without the system's up/down arrows; the unit sits inside the field */
.tool input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.tool input[type="number"]::-webkit-inner-spin-button, .tool input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.tool .unit { position: relative; }
.tool .unit input { padding-right: 76px; }
.tool .unit span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--soft); pointer-events: none; white-space: nowrap; }

/* the site's dropdown (js/tools/ui.js) in place of the system menu */
.tool .ts { position: relative; }
.tool .ts-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tool .ts-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; cursor: pointer; }
.tool .ts.is-open .ts-btn { border-color: rgb(70, 75, 84); }
.tool .ts-chev { flex: none; width: 14px; height: 14px; color: var(--soft); transition: transform 200ms var(--ease-out); }
.tool .ts.is-open .ts-chev { transform: rotate(180deg); }
.tool .ts-list {
  position: absolute; z-index: 30; left: 0; top: calc(100% + 6px);
  min-width: max(100%, 210px); max-height: 280px; overflow-y: auto;
  margin: 0; padding: 6px; list-style: none;
  background: rgb(22, 24, 28); border: 1px solid rgb(48, 52, 58); border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}
.tool .ts.is-up .ts-list { top: auto; bottom: calc(100% + 6px); }
.tool .ts-list:focus { outline: none; }
.tool .ts-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: 8px; font-size: 14px; color: rgb(205, 209, 215); cursor: pointer; white-space: nowrap; }
.tool .ts-list li.is-active { background: rgb(36, 39, 45); color: var(--white); }
.tool .ts-list li[aria-selected="true"] { color: var(--white); font-weight: 600; }
.tool .ts-check { flex: none; width: 14px; height: 14px; color: var(--accent); opacity: 0; }
.tool .ts-list li[aria-selected="true"] .ts-check { opacity: 1; }

/* buttons */
.tool .tool-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none;
  padding: 10px 18px; border: 1px solid var(--accent); border-radius: 999px;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--black); background: var(--accent);
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.tool .tool-btn:hover { filter: brightness(1.08); }
.tool .tool-btn--ghost { background: transparent; color: var(--heading); border-color: rgb(58, 62, 69); }
.tool .tool-btn:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.tool .status { font-size: 13px; color: rgb(127, 191, 156); }

/* ── the proposal generator: one workspace ─────────────────────────── */
.pg-app { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.pg-form { padding: 22px 22px 16px; }
.pg-form fieldset + fieldset { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.pg-form legend { float: left; width: 100%; margin: 0 0 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); }
.pg-form legend + * { clear: both; }
.pg-form label { margin: 12px 0 6px; font-size: 13px; }
.pg-form input, .pg-form textarea, .pg-form .ts-btn { padding: 9px 12px; font-size: 14px; }
.pg-hint { margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--soft); }
/* a pair of fields lines up along its inputs, even when one label wraps to two lines */
.pg-form .row { align-items: end; }

.pg-preview { display: flex; flex-direction: column; min-width: 0; border-top: 1px solid var(--line); border-radius: 0 0 20px 20px; overflow: hidden; }
.pg-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.pg-live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--heading); }
.pg-live i { width: 7px; height: 7px; border-radius: 50%; background: rgb(127, 191, 156); box-shadow: 0 0 0 4px rgba(127, 191, 156, 0.14); }
.pg-sample { font-size: 12.5px; color: var(--soft); }
.pg-bar .status { margin-left: auto; }
.pg-sample[hidden] + .status { margin-left: auto; }
.pg-desk {
  container-type: inline-size;
  padding: clamp(14px, 3vw, 36px);
  background: rgb(20, 22, 25) radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 18px 18px;
}
.pg-note { max-width: 760px; margin: 14px auto 0; font-size: 12.5px; line-height: 1.5; text-align: center; color: var(--soft); }

@media (min-width: 1000px) {
  /* the form sets the height; the page scrolls inside the preview beside it */
  .pg-app { grid-template-columns: 380px minmax(0, 1fr); }
  .pg-form { border-right: 1px solid var(--line); }
  .pg-preview { contain: size; min-height: 560px; border-top: 0; border-radius: 0 20px 20px 0; }
  .pg-desk { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgb(58, 62, 69) transparent; }
}

/* ── the proposal page: didote's PDF proposal look ─────────────────── */
.pg-paper {
  --ink: #1A1A1A; --muted: #6B6055; --tan: #8B5E3C; --hair: rgba(26, 26, 26, 0.10);
  max-width: 760px; margin: 0 auto; padding: 52px 56px 56px;
  background: #FAF7F2; color: #2A2722; border-radius: 3px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  font-family: "Plus Jakarta Sans", -apple-system, system-ui, sans-serif; font-size: 14.5px; line-height: 1.65;
}
.pg-paper .is-sample { opacity: 0.45; }
.pp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 34px; padding-bottom: 22px; border-bottom: 1.5px solid var(--ink); }
.pp-kicker { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tan); }
.pp-title { margin: 8px 0 4px; font-size: 32px; font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); }
.pp-sub { margin: 0; font-size: 15px; color: var(--muted); }
.pp-head__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; max-width: 45%; text-align: right; }
.pp-mono { display: flex; align-items: flex-end; justify-content: flex-end; width: 44px; height: 44px; padding: 4px 5px; background: linear-gradient(135deg, #B42550, #7A1230); color: #fff; font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: 0.02em; }
.pp-date { font-size: 12px; color: var(--muted); }
.pp-who { font-size: 10.5px; letter-spacing: 0.12em; color: var(--muted); }
.pp-sec { margin: 0 0 30px; }
.pp-sec:last-child { margin-bottom: 0; }
.pp-h { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }
.pp-h span { font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }
.pp-h::after { content: ""; flex: 1; height: 1px; background: rgba(139, 94, 60, 0.35); }
.pg-paper p { margin: 0 0 10px; }
.pg-paper b { color: var(--ink); }
.pp-list { margin: 0; padding-left: 20px; list-style: disc; }
.pp-list li { margin: 3px 0; }
.pp-small { margin-top: 12px !important; font-size: 12.5px; color: var(--muted); }

.pp-phases { margin: 0; padding: 0; list-style: none; }
.pp-phase { display: grid; grid-template-columns: minmax(0, 1fr) 42%; gap: 18px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.pp-phase:first-child { border-top: 1px solid var(--hair); }
.pp-phase__text b { font-size: 14px; }
.pp-phase__text p { margin: 2px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.pp-when { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: rgba(139, 94, 60, 0.12); color: #76492B; font-size: 11px; font-weight: 600; vertical-align: 1px; }
.pp-track { position: relative; height: 10px; border-radius: 999px; background: rgba(26, 26, 26, 0.06); }
.pp-track i { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: var(--tan); }
.pp-axis { position: relative; display: grid; grid-template-columns: repeat(var(--weeks), minmax(0, 1fr)); margin: 6px 0 0 calc(58% + 0px); font-size: 10px; color: var(--muted); text-align: center; }
.pp-axis em { position: absolute; right: 100%; padding-right: 8px; font-style: normal; }

.pp-checks { margin: 0; padding: 0; list-style: none; }
.pp-checks li { position: relative; margin: 5px 0; padding-left: 24px; }
.pp-checks li::before { content: ""; position: absolute; left: 3px; top: 0.5em; width: 10px; height: 5px; border-left: 2px solid var(--tan); border-bottom: 2px solid var(--tan); transform: rotate(-45deg); }
.pp-out { margin-top: 12px !important; padding: 10px 14px; border-radius: 8px; background: rgba(26, 26, 26, 0.04); font-size: 13.5px; }
.pp-out b { margin-right: 6px; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.pp-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pp-option { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 16px 16px; border: 1px solid rgba(26, 26, 26, 0.14); border-radius: 10px; background: #FFFDF9; }
.pp-option.is-rec { background: var(--ink); border-color: var(--ink); color: #F3EEE6; }
.pp-option__name { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pp-option.is-rec .pp-option__name { color: #D9C7B4; }
.pp-option__price { font-size: 26px; font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); font-variant-numeric: tabular-nums; }
.pp-option.is-rec .pp-option__price { color: #fff; }
.pp-option__scope { font-size: 12.5px; line-height: 1.5; }

.pp-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 26px; font-size: 12px; color: var(--muted); }
.pp-sign__line { display: block; height: 34px; margin-bottom: 6px; border-bottom: 1px solid var(--ink); }
.pp-from { margin-top: 22px !important; font-weight: 700; color: var(--ink); }

/* the page narrows with its pane (phones, small windows) */
@container (max-width: 640px) {
  .pg-paper { padding: 28px 22px 30px; font-size: 14px; }
  .pp-head { flex-direction: column; gap: 14px; }
  .pp-head__side { align-items: flex-start; max-width: none; text-align: left; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
  .pp-title { font-size: 26px; }
  .pp-phase { grid-template-columns: 1fr; gap: 8px; }
  .pp-axis { display: none; }
  .pp-options { grid-template-columns: 1fr; gap: 16px; }
  .pp-sign { grid-template-columns: 1fr; gap: 14px; }
}

/* ── under the tool: one call to action, a few questions ───────────── */
.tool-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin-top: 28px; padding: 24px 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.tool-cta > div { flex: 1 1 480px; }
.tool-cta h2 { margin: 0 0 6px; font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--heading); }
.tool-cta p { margin: 0; max-width: 720px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.tool-faq { margin-top: clamp(40px, 5vw, 64px); }
.tool-faq h2 { margin: 0 0 12px; font-size: clamp(22px, 2vw, 28px); font-weight: 600; color: var(--heading); }
@media (min-width: 900px) {
  .tool-faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 48px; align-items: start; }
  .tool-faq h2 { margin-top: 12px; }
}
.tool-faq__list { border-top: 1px solid var(--line); }
.tool-faq details { border-bottom: 1px solid var(--line); }
.tool-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; font-size: 16px; font-weight: 600; color: var(--heading); cursor: pointer; list-style: none; }
.tool-faq summary::-webkit-details-marker { display: none; }
.tool-faq summary::after { content: "+"; flex: none; font-size: 20px; font-weight: 400; line-height: 1; color: var(--soft); transition: transform 200ms var(--ease-out); }
.tool-faq details[open] summary::after { transform: rotate(45deg); }
.tool-faq details p { margin: 0 0 18px; max-width: 760px; font-size: 15px; line-height: 1.65; color: rgb(196, 200, 207); }
.tool-faq a, .tool .content a { color: var(--white); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* ── the rate calculator: the same workspace, the result as a rate card ─ */
.rc-app { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.rc-results { min-width: 0; padding: clamp(22px, 3vw, 36px); border-top: 1px solid var(--line); }
@media (min-width: 1000px) {
  .rc-app { grid-template-columns: 380px minmax(0, 1fr); }
  .rc-form { border-right: 1px solid var(--line); }
  .rc-results { border-top: 0; }
}
.rc-label { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); }
.rc-rate { margin: 8px 0 6px; font-size: clamp(48px, 6vw, 76px); font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: var(--white); font-variant-numeric: tabular-nums; }
.rc-sub { margin: 0 0 24px; font-size: 14px; line-height: 1.5; color: var(--soft); }
.rc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 28px; }
.rc-stat { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgb(17, 19, 22); }
.rc-stat .k { font-size: 12.5px; color: var(--soft); }
.rc-stat .v { font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: var(--heading); font-variant-numeric: tabular-nums; }
.rc-stat .n { font-size: 12px; color: rgb(142, 148, 158); }
.rc-stat--quote .v { color: rgb(127, 191, 156); }
.rc-h { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--heading); }
.rc-bar { display: flex; gap: 2px; height: 12px; margin-bottom: 12px; border-radius: 999px; overflow: hidden; background: rgb(28, 30, 34); }
.rc-bar i { display: block; height: 100%; transition: width 300ms var(--ease-out); }
.tool .s1 { background: rgb(127, 191, 156); }
.tool .s2 { background: rgb(120, 150, 210); }
.tool .s3 { background: rgb(208, 76, 99); }
.tool .s4 { background: rgb(214, 170, 90); }
.rc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rc-table td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.rc-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--heading); }
.rc-table .dot { display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; vertical-align: 1px; }
.rc-table tr.total td { padding-top: 12px; border-bottom: 0; font-weight: 700; color: var(--white); }
.rc-formula { margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; background: rgb(17, 19, 22); font-size: 13px; line-height: 1.55; color: var(--muted); }
.rc-formula:empty { display: none; }
.tool .warn { margin: 12px 0 0; font-size: 14px; color: rgb(240, 170, 110); }
.tool code { padding: 0.1em 0.4em; font-size: 0.9em; border: 1px solid var(--line); border-radius: 4px; background: rgb(24, 26, 30); }
@media (max-width: 600px) {
  .rc-stats { grid-template-columns: 1fr 1fr; }
  .rc-stat--quote { grid-column: 1 / -1; }
}

@media (max-width: 520px) { .tool .row { grid-template-columns: 1fr; } }
/* the proposal form's number pairs stay side by side on a phone (short labels, short numbers) */
.tool .pg-form .row { grid-template-columns: 1fr 1fr; }

/* "Save as PDF": the proposal page alone, on white, across as many pages as it needs */
@media print {
  @page { margin: 14mm; }
  #boot, .skip-link, .site-header, .site-footer, .post-crumbs, .tool-hero, .pg-form, .pg-bar, .pg-note, .tool-cta, .tool-faq { display: none !important; }
  html, body, main, .tool, .pg-app, .pg-preview, .pg-desk {
    display: block !important; height: auto !important; min-height: 0 !important; overflow: visible !important; contain: none !important;
    max-width: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important;
    background: #fff !important; box-shadow: none !important;
  }
  .pg-paper { max-width: none; margin: 0; padding: 0; background: #fff; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pp-sec, .pp-option, .pp-phase { break-inside: avoid; }
}
