/* Free tools: /tools/ hub, every /tools/<slug>/ page, and the app call-to-action
   they share. Built on the site tokens (--yellow, --ink, --card, --line). */

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.tool-wrap { max-width: 760px; margin: 0 auto; padding: 28px 20px 72px; }

.tool-crumbs a {
  font-size: 14px; font-weight: 700; color: var(--muted); text-decoration: none;
}
.tool-crumbs a:hover { color: var(--ink); }

.tool-head { margin: 22px 0 26px; }
.tool-kicker {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; background: var(--yellow); color: var(--ink);
  padding: 5px 11px; border-radius: 100px;
}
.tool-head h1 {
  font-size: clamp(30px, 6vw, 44px); line-height: 1.08; letter-spacing: -0.025em;
  font-weight: 900; margin: 14px 0 12px;
}
.tool-intro { font-size: 18px; line-height: 1.55; color: #3a3a42; margin: 0 0 10px; }
.tool-note { font-size: 14px; color: var(--muted); margin: 0; }

/* ---- the tool ---- */
.tool-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  padding: 26px 24px 24px; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.07);
}
.tool-field { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.tool-field label, .tool-field legend {
  display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 9px; padding: 0;
}
.tool-field input[type="text"] {
  width: 100%; font: inherit; font-size: 17px; padding: 13px 15px;
  border: 1.5px solid var(--line); border-radius: 14px; background: #FBFAF7; color: var(--ink);
}
.tool-field input[type="text"]:focus { outline: none; border-color: var(--ink); background: #fff; }
.tool-grid { display: grid; gap: 0 24px; grid-template-columns: 1fr; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: 15px; font-weight: 700; padding: 9px 15px; border-radius: 100px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-checked="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip:active { transform: scale(0.97); }
.chip:focus-visible, .tool-go:focus-visible, .res-btn:focus-visible { outline: 3px solid var(--yellow-deep); outline-offset: 2px; }

.tool-go {
  width: 100%; font: inherit; font-size: 18px; font-weight: 900; padding: 16px 20px;
  border: 0; border-radius: 16px; background: var(--yellow); color: var(--ink); cursor: pointer;
  box-shadow: 0 6px 0 var(--yellow-deep); transition: transform 0.1s, box-shadow 0.1s;
}
.tool-go:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--yellow-deep); }

.tool-results { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.tool-results:empty { display: none; }
.result {
  background: #FBFAF7; border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 14px;
  animation: resultIn 0.28s ease both;
}
@keyframes resultIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .result { animation: none; } }
.result--note, .result--empty { background: transparent; border-style: dashed; color: var(--muted); font-size: 15px; padding: 12px 16px; }
.result-text { font-size: 18px; line-height: 1.5; margin: 0 0 12px; white-space: pre-line; }
.result-text--quote { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.result-title { font-size: 20px; letter-spacing: -0.015em; margin: 0 0 4px; }
.result-meta { font-size: 13px; font-weight: 700; color: var(--muted); margin: 0 0 8px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.res-btn {
  font: inherit; font-size: 14px; font-weight: 800; padding: 8px 14px; border-radius: 100px;
  border: 1.5px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center;
}
.res-btn--ghost { background: transparent; color: var(--ink); }
.res-btn:hover { opacity: 0.88; }

.cal-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.cal-row input {
  font: inherit; font-size: 14px; padding: 7px 10px; border: 1.5px solid var(--line);
  border-radius: 12px; background: #fff;
}
.ics-hint { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

.tool-more { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.tool-again {
  font: inherit; font-size: 15px; font-weight: 800; padding: 10px 18px; border-radius: 100px;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer;
}
.tool-copied { font-size: 14px; font-weight: 700; color: var(--green); }

.card-panel { margin-top: 14px; }
.card-preview { width: 100%; max-width: 320px; border-radius: 16px; display: block; margin: 0 0 12px; box-shadow: 0 10px 28px rgba(0,0,0,0.14); }

/* ---- app call-to-action ---- */
.app-cta {
  background: var(--ink); color: #fff; border-radius: 24px; padding: 30px 28px; margin: 28px 0;
  position: relative; overflow: hidden;
}
.app-cta::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px;
  background: var(--yellow); border-radius: 50%; opacity: 0.16; pointer-events: none;
}
.app-cta-kicker { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--yellow); }
.app-cta-title { font-size: clamp(22px, 4.5vw, 28px); line-height: 1.15; letter-spacing: -0.02em; margin: 10px 0 10px; color: #fff; }
.app-cta-body { font-size: 16px; line-height: 1.55; color: #d9d9de; margin: 0 0 14px; }
.app-cta-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.app-cta-list li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.45; color: #ececf0; }
.app-cta-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--yellow); font-weight: 900; }
.app-cta .store-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-start; }
/* Same light-badge treatment as .final-cta: the default badge is ink with white
   text, which vanishes on this dark card. The name must be dark, not inherited. */
.app-cta .store-badge { background: #fff; color: var(--ink); padding: 10px 20px; }
.app-cta .store-badge .store-eyebrow { color: var(--muted); }
.app-cta .store-badge .store-name { color: var(--ink); }
.app-cta .store-badge img[alt="App Store"] { filter: invert(1); }
.is-ios .app-cta .store-badge[data-store="android"] { order: 2; opacity: 0.85; }
.is-android .app-cta .store-badge[data-store="ios"] { order: 2; opacity: 0.85; }
.app-cta-fine { font-size: 12.5px; color: #a9a9b2; margin: 14px 0 0; }
.app-cta--inline { margin-top: 22px; }

/* ---- prose ---- */
.tool-prose { margin-top: 40px; }
.tool-prose h2 { font-size: 26px; letter-spacing: -0.02em; line-height: 1.2; margin: 36px 0 12px; }
.tool-prose p { font-size: 17px; line-height: 1.65; margin: 0 0 14px; color: #2a2a31; }
.tool-faq { border-top: 1px solid var(--line); padding: 16px 0 4px; }
.tool-faq h3 { font-size: 18px; margin: 0 0 6px; }
.tool-faq p { font-size: 16px; }

/* ---- related ---- */
.tool-related { margin-top: 44px; }
.tool-related h2, .tools-hub h2 { font-size: 22px; letter-spacing: -0.02em; margin: 0 0 14px; }
.tool-grid-cards { display: grid; gap: 12px; grid-template-columns: 1fr; }
.tool-tile {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 18px 18px 16px; text-decoration: none; color: var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
}
.tool-tile:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,0.08); }
.tool-tile strong { display: block; font-size: 17px; margin-bottom: 4px; letter-spacing: -0.01em; }
.tool-tile span { display: block; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.tool-tile em { display: inline-block; margin-top: 8px; font-style: normal; font-size: 13px; font-weight: 800; }

/* ---- hub ---- */
.tools-hub .tool-head { margin-bottom: 30px; }
.tools-group { margin: 34px 0 0; }
.tools-group > p { color: var(--muted); font-size: 15.5px; margin: -6px 0 14px; }

@media (min-width: 640px) {
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .tool-grid-cards { grid-template-columns: 1fr 1fr; }
  .tool-card { padding: 30px 30px 28px; }
}

/* ---- quiz result: per-dimension breakdown ---- */
.dim-list { display: grid; gap: 14px; margin: 18px 0 6px; }
.dim-row { background: #FBFAF7; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px 6px; }
.dim-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.dim-head strong { font-size: 16px; }
.dim-level { font-size: 11px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.dim-bar { height: 8px; background: rgba(0,0,0,0.07); border-radius: 100px; margin: 9px 0 10px; overflow: hidden; }
.dim-bar-fill { height: 100%; border-radius: 100px; background: var(--yellow-deep); }
.dim-row--high .dim-bar-fill { background: var(--green); }
.dim-row--low .dim-bar-fill { background: var(--red); }
.dim-row p { font-size: 15px; line-height: 1.55; margin: 0 0 10px; color: #33333a; }
