/* =====================================================================
   PinBoostr — Free tool pages.
   Loaded only on /free-tools/* (see pinboostr_is_free_tool_path()). Every
   class is prefixed .pb-ft-, which keeps it clear of retro-brand.css's
   !important recolours and of the Tailwind purge.

   Direction: an editorial reference card, not a landing page. One warm paper
   surface top to bottom — no hero band, no glow, no gradient text, no badges.
   Structure comes from hairline rules, numbered small-caps labels and a real
   serif/sans pairing. The tool sits at the very top and is usable straight
   away: the page IS the tool, not a pitch for it.

   Accent is one flat colour per platform, used only on the submit button,
   focus rings, links and the score numerals. Swap --ac, nothing else changes.
   ===================================================================== */

.pb-ft {
  --paper: #fdf5ef;
  --panel: #fffaf6;
  --ink: #171216;
  --muted: #655c66;
  --soft: #9b9199;
  --ac: #d81e56;
  --ac-ink: #a3113d;
  /* Derived, so every palette below only has to set --paper/--panel/--ac. */
  --rule: color-mix(in oklab, var(--ink) 13%, var(--paper));
  --rule-strong: color-mix(in oklab, var(--ink) 28%, var(--paper));
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  background: var(--paper);
  color: var(--ink);
}

/* Each tool gets its own identity. The paper shifts just enough to feel
   different page to page while staying in the brand's warm-neutral family;
   the accent is the part people actually register. */
.pb-ft[data-palette="rose"]    { --ac: #d81e56; --ac-ink: #a3113d; --paper: #fdf5ef; --panel: #fffaf6; }
.pb-ft[data-palette="ember"]   { --ac: #c2410c; --ac-ink: #9a3412; --paper: #fdf6f0; --panel: #fffbf7; }
.pb-ft[data-palette="plum"]    { --ac: #86198f; --ac-ink: #701a75; --paper: #fbf6f7; --panel: #fffbfc; }
.pb-ft[data-palette="pine"]    { --ac: #0f766e; --ac-ink: #115e59; --paper: #f8f8f2; --panel: #fdfdf8; }
.pb-ft[data-palette="azure"]   { --ac: #0a66c2; --ac-ink: #084d93; --paper: #f7f8fa; --panel: #fdfdfe; }
.pb-ft[data-palette="indigo"]  { --ac: #4338ca; --ac-ink: #3730a3; --paper: #f8f7fb; --panel: #fdfcff; }
.pb-ft[data-palette="ochre"]   { --ac: #a16207; --ac-ink: #854d0e; --paper: #fdf8ec; --panel: #fffdf5; }

.pb-ft *,
.pb-ft *::before,
.pb-ft *::after { box-sizing: border-box; }

/* Matches the site header exactly (Tailwind max-w-7xl + px-4 sm:px-6 lg:px-8)
   so the page's left edge lines up with the logo on every breakpoint. */
.pb-ft-wrap {
  margin: 0 auto;
  max-width: 80rem;
  padding-inline: 1rem;
}
@media (min-width: 640px) { .pb-ft-wrap { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .pb-ft-wrap { padding-inline: 2rem; } }

/* ── Masthead: the tool, immediately ──────────────────────────────── */

.pb-ft-top { padding-top: 40px; }
@media (min-width: 900px) { .pb-ft-top { padding-top: 56px; } }

.pb-ft-crumb {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
.pb-ft-crumb a { color: var(--soft); text-decoration: none; }
.pb-ft-crumb a:hover { color: var(--ink); }
.pb-ft-crumb em { font-style: normal; color: var(--ac); }

.pb-ft-h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.8vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.021em;
  color: var(--ink);
  margin: 32px 0 0;
  max-width: 24ch;
  text-wrap: balance;
}

.pb-ft-lede {
  margin: 20px 0 0;
  max-width: 38rem;
  font-size: 1.125rem;
  line-height: 1.66;
  color: var(--muted);
}

/* ── The input bar ────────────────────────────────────────────────── */

.pb-ft-form {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 44rem;
}
@media (min-width: 640px) { .pb-ft-form { flex-direction: row; } }

.pb-ft-field { position: relative; flex: 1; }

.pb-ft-field > :is(svg, i) {
  position: absolute;
  left: 18px;
  top: 50%;
  translate: 0 -50%;
  font-size: 15px;
  line-height: 1;
  color: var(--soft);
  pointer-events: none;
  transition: color 0.18s var(--ease);
}
.pb-ft-field:focus-within > :is(svg, i) { color: var(--ac); }

.pb-ft-input {
  width: 100%;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  background: var(--panel);
  padding: 17px 18px 17px 46px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.pb-ft-input::placeholder { color: var(--soft); }
.pb-ft-input:focus {
  border-color: var(--ac);
  box-shadow: inset 0 0 0 1px var(--ac);
}

.pb-ft-submit {
  flex: none;
  border: 1px solid var(--ac);
  border-radius: 2px;
  background: var(--ac);
  color: #fff;
  padding: 17px 30px;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.pb-ft-submit:hover { background: var(--ac-ink); border-color: var(--ac-ink); }
.pb-ft-submit:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pb-ft-submit[disabled] { background: var(--soft); border-color: var(--soft); cursor: progress; }

/* Examples as prose links, not chips. */
.pb-ft-seeds {
  margin: 16px 0 0;
  font-size: 13.5px;
  line-height: 2;
  color: var(--soft);
}
.pb-ft-seeds > span {
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 10.5px;
  margin-right: 12px;
}
.pb-ft-seed {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
  text-underline-offset: 4px;
}
.pb-ft-seed:hover { color: var(--ac); text-decoration-color: currentColor; }
.pb-ft-seed:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; }
.pb-ft-sep { color: var(--rule-strong); margin: 0 9px; }

.pb-ft-fine {
  margin: 22px 0 0;
  padding-bottom: 38px;
  font-size: 12.5px;
  color: var(--soft);
}

/* ── Results ──────────────────────────────────────────────────────── */

.pb-ft-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
}

.pb-ft-panel-title {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.pb-ft-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ac);
}
.pb-ft-badge--muted { color: var(--soft); }

.pb-ft-ghost {
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  background: transparent;
  padding: 8px 14px;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.pb-ft-ghost:hover { color: var(--ink); border-color: var(--ink); }
.pb-ft-ghost:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }

.pb-ft-scroll { overflow-x: auto; max-width: 100%; }

/* Self-contained visually-hidden helper (this file avoids Tailwind on purpose). */
.pb-ft-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pb-ft-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pb-ft-table thead th {
  text-align: left;
  padding: 14px 20px 12px 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--soft);
  white-space: nowrap;
  border-bottom: 1px solid var(--rule);
}
.pb-ft-table thead th:last-child { padding-right: 0; text-align: right; }
.pb-ft-table tbody td {
  padding: 18px 20px 18px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: baseline;
}
.pb-ft-table tbody td:last-child { padding-right: 0; text-align: right; }

/* The result is the content, so it is set in the serif at reading size. */
.pb-ft-cell-main {
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
  min-width: 20rem;
}
.pb-ft-cell-soft { font-size: 13px; color: var(--muted); white-space: nowrap; }
.pb-ft-num { font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 700; color: var(--ac); }

/* On a phone the result and the copy button are what matter; Angle (2) and
   Best use (4) drop out so the table fits instead of scrolling sideways. */
@media (max-width: 719px) {
  .pb-ft-table :is(th, td):nth-child(2),
  .pb-ft-table :is(th, td):nth-child(4) { display: none; }
  .pb-ft-cell-main { min-width: 0; font-size: 1rem; }
  .pb-ft-table :is(th, td) { padding-right: 14px; }
}

.pb-ft-copy {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  color: var(--soft);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
  text-underline-offset: 4px;
  white-space: nowrap;
}
.pb-ft-copy:hover { color: var(--ac); text-decoration-color: currentColor; }
.pb-ft-copy:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; }
.pb-ft-copy[data-copied="1"] { color: var(--ac-ink); }

/* Empty / loading / error — quiet, never a hollow box. */
.pb-ft-state {
  padding: 32px 0 36px;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  color: var(--muted);
  max-width: 44rem;
}
.pb-ft-state-title { margin: 0; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--ink); }
.pb-ft-state-sub { margin: 8px 0 0; font-size: 14px; color: var(--soft); }
.pb-ft-state[data-tone="error"] { color: var(--ac-ink); }
.pb-ft-state-row { display: flex; align-items: center; gap: 11px; }

.pb-ft-spinner {
  height: 14px;
  width: 14px;
  flex: none;
  border-radius: 999px;
  border: 1.5px solid var(--rule-strong);
  border-top-color: var(--ac);
  animation: pb-ft-spin 0.7s linear infinite;
}
@keyframes pb-ft-spin { to { rotate: 360deg; } }

.pb-ft-skel { margin-top: 20px; }
.pb-ft-skel-row {
  display: grid;
  grid-template-columns: 1fr 6rem;
  gap: 24px;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid var(--rule);
}
.pb-ft-skel-bar {
  height: 9px;
  background: linear-gradient(90deg, rgba(23, 18, 22, 0.06) 25%, rgba(23, 18, 22, 0.12) 37%, rgba(23, 18, 22, 0.06) 63%);
  background-size: 400% 100%;
  animation: pb-ft-shimmer 1.4s ease infinite;
}
@keyframes pb-ft-shimmer { to { background-position: -135% 0; } }

/* ── Sections ─────────────────────────────────────────────────────── */

.pb-ft-section { padding: 56px 0; }
@media (min-width: 900px) { .pb-ft-section { padding: 72px 0; } }

.pb-ft-label {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 22px;
}
.pb-ft-label b { font-weight: 700; color: var(--ac); font-variant-numeric: tabular-nums; }

.pb-ft-h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  line-height: 1.2;
  letter-spacing: -0.014em;
  color: var(--ink);
  margin: 0;
  max-width: 24ch;
  text-wrap: balance;
}

.pb-ft-prose { max-width: 38rem; }
.pb-ft-prose p {
  margin: 0 0 20px;
  font-size: 1.0625rem;
  line-height: 1.78;
  color: var(--muted);
}
.pb-ft-prose p:last-child { margin-bottom: 0; }
.pb-ft-prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--ac);
  text-underline-offset: 3px;
}
.pb-ft-prose a:hover { color: var(--ac); }

/* Editorial split: label + heading left, content right. */
.pb-ft-split { display: grid; gap: 30px; }
@media (min-width: 900px) {
  .pb-ft-split { grid-template-columns: 16rem 1fr; gap: 56px; }
  .pb-ft-split--wide { grid-template-columns: 1fr 18rem; }
}

/* Steps as a ruled list, not cards. */
.pb-ft-step {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 4px 18px;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}
.pb-ft-step:first-child { border-top: 0; padding-top: 0; }
.pb-ft-step-n {
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: var(--ac);
  padding-top: 4px;
}
.pb-ft-step h3 { margin: 0; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.pb-ft-step p { grid-column: 2; margin: 7px 0 0; font-size: 15px; line-height: 1.7; color: var(--muted); }

/* ── FAQ: rules, no boxes ─────────────────────────────────────────── */

.pb-ft-faq details { border-top: 1px solid var(--rule); }
.pb-ft-faq details:first-child { border-top: 0; }
.pb-ft-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}
.pb-ft-faq summary::-webkit-details-marker { display: none; }
.pb-ft-faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--soft);
}
.pb-ft-faq details[open] summary::after { content: "\2013"; color: var(--ac); }
.pb-ft-faq summary:hover { color: var(--ac); }
.pb-ft-faq summary:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
.pb-ft-faq-a { padding: 0 0 22px; max-width: 40rem; font-size: 15px; line-height: 1.78; color: var(--muted); }

/* ── Tool list: rules, not cards ──────────────────────────────────── */

.pb-ft-link {
  display: block;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  text-decoration: none;
  transition: padding-left 0.22s var(--ease);
}
.pb-ft-link:first-child { border-top: 0; }
.pb-ft-link:hover { padding-left: 8px; }
.pb-ft-link strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
}
.pb-ft-link:hover strong { color: var(--ac); }
.pb-ft-link span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.6; color: var(--soft); }

/* Two-up index on the hub. */
.pb-ft-index { display: grid; }
@media (min-width: 720px) { .pb-ft-index { grid-template-columns: 1fr 1fr; column-gap: 56px; } }
@media (min-width: 720px) { .pb-ft-index .pb-ft-link:nth-child(2) { border-top: 0; } }

/* ── Closing note: a ruled block, not a dark band ─────────────────── */

.pb-ft-note {
  border-top: 2px solid var(--ink);
  padding-top: 30px;
  display: grid;
  gap: 22px;
}
@media (min-width: 900px) { .pb-ft-note { grid-template-columns: 1fr auto; align-items: end; gap: 48px; } }
.pb-ft-note p { margin: 12px 0 0; max-width: 40rem; font-size: 15px; line-height: 1.74; color: var(--muted); }

.pb-ft-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.pb-ft-btn {
  display: inline-flex;
  align-items: center;
  border-radius: 2px;
  padding: 14px 26px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.pb-ft-btn--primary { background: var(--ac); border: 1px solid var(--ac); color: #fff; }
.pb-ft-btn--primary:hover { background: var(--ac-ink); border-color: var(--ac-ink); }
.pb-ft-btn--quiet { border: 1px solid var(--rule-strong); color: var(--ink); }
.pb-ft-btn--quiet:hover { border-color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .pb-ft-skel-bar { animation: none; }
  .pb-ft-spinner { animation-duration: 1.4s; }
  .pb-ft-link:hover { padding-left: 0; }
}
