/* Shared by the /tools pages. Loaded after /style.css. */

.tool-hero { background: var(--teal); color: var(--paper); padding: clamp(3rem, 7vw, 5rem) 0 clamp(3rem, 7vw, 4.5rem); position: relative; overflow: hidden; }
.tool-hero::before {
  content: ""; position: absolute; inset: auto -25% -70% auto; width: 60rem; height: 60rem; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(59, 124, 114, 0.35), transparent 70%); pointer-events: none;
}
.tool-hero .wrap { position: relative; }
.tool-hero h1 { font-size: clamp(2.3rem, 5.6vw, 3.9rem); letter-spacing: -0.035em; line-height: 1.04; max-width: 48rem; }
.tool-hero h1 .soft { color: var(--sage); }
.tool-hero .lead { margin: 1.25rem 0 0; font-size: clamp(1.08rem, 1.7vw, 1.24rem); color: var(--sage); max-width: 40rem; }
.tool-hero .meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 1.6rem; font-size: 0.9rem; color: var(--sage); font-weight: 600; }
.tool-hero .meta span { display: inline-flex; align-items: center; gap: 0.45rem; }
.tool-hero .meta span::before { content: ""; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--sage); }
.crumbs { font-size: 0.88rem; font-weight: 650; margin-bottom: 1.25rem; }
.crumbs a { color: var(--sage); text-decoration: none; }
.crumbs a:hover { color: var(--paper); }

.tool-section { padding: clamp(3rem, 7vw, 5rem) 0; }
.tool-section.alt { background: var(--card); }
.tool-section h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.tool-section .sub { color: var(--muted); font-size: 1.08rem; margin-top: 0.75rem; max-width: 42rem; }
.head-row { margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 1.75rem); }
.tool-section.alt .panel { border-color: transparent; }
.panel h3 { font-size: 1.15rem; letter-spacing: -0.01em; margin-bottom: 0.4rem; }
.small { font-size: 0.88rem; color: var(--muted); }
.num-big { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--teal); font-variant-numeric: tabular-nums; }
.tabnum { font-variant-numeric: tabular-nums; }

/* Segmented control */
.seg { display: inline-flex; padding: 4px; background: var(--card); border-radius: 999px; gap: 2px; flex-wrap: wrap; }
.seg button {
  font: inherit; font-size: 0.9rem; font-weight: 700; border: 0; background: transparent; color: var(--muted);
  padding: 0.5rem 0.95rem; border-radius: 999px; cursor: pointer; min-height: 40px;
}
.seg button[aria-pressed="true"] { background: var(--teal); color: var(--paper); }
.seg button:hover:not([aria-pressed="true"]) { color: var(--ink); }

/* Stepper */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.stepper button {
  width: 40px; height: 40px; border: 0; background: transparent; font: inherit; font-size: 1.2rem; font-weight: 700; color: var(--ink);
  cursor: pointer; border-radius: 50%;
}
.stepper button:hover { background: var(--card); }
.stepper input {
  width: 3.6rem; border: 0; background: transparent; text-align: center; font: inherit; font-weight: 750; font-variant-numeric: tabular-nums;
  color: var(--ink); -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Range */
input[type="range"] { width: 100%; accent-color: var(--green); height: 28px; cursor: pointer; }

/* Lead capture */
.capture { background: var(--teal); color: var(--paper); border-radius: calc(var(--radius) + 6px); padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.capture h2, .capture h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--paper); }
.capture p { color: var(--sage); }
.capture .who { display: flex; align-items: center; gap: 0.85rem; margin-top: 1.25rem; }
.capture .who img { width: 3.25rem; height: 3.25rem; border-radius: 50%; object-fit: cover; object-position: 50% 30%; box-shadow: 0 0 0 3px rgba(173, 204, 194, 0.3); }
.capture .who b { display: block; color: var(--paper); }
.capture .who span { font-size: 0.9rem; color: var(--sage); }
.lead-form { display: grid; gap: 0.85rem; }
.lead-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.field label { display: block; font-size: 0.86rem; font-weight: 700; margin-bottom: 0.35rem; color: var(--sage); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid transparent;
  border-radius: var(--radius-sm); padding: 0.75rem 0.9rem; min-height: 48px;
}
.field textarea { min-height: 5.5rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--sage); outline-offset: 1px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.lead-form .btn { width: 100%; }
.form-note { font-size: 0.84rem; color: var(--sage); margin: 0; }
.form-note a { color: var(--paper); }
.form-error { color: #FFD7C7; font-size: 0.9rem; font-weight: 650; margin: 0; }
.sent { display: grid; gap: 0.75rem; }
.sent .check { width: 3rem; height: 3rem; border-radius: 50%; background: var(--sage); color: var(--teal); display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; }
.sent h3 { font-size: 1.4rem; }

/* Light variant of the form, used inside paper panels */
.lead-form.on-light .field label { color: var(--muted); }
.lead-form.on-light .field input, .lead-form.on-light .field textarea { border-color: var(--line); }
.lead-form.on-light .field input:focus { outline-color: var(--green); }
.lead-form.on-light .form-note { color: var(--muted); }
.lead-form.on-light .form-note a { color: var(--ink); }
.lead-form.on-light .form-error { color: #A23B1E; }

/* Tool cards (hub and homepage) */
.tool-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.tool-card {
  display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.tool-card:hover { color: var(--ink); transform: translateY(-3px); border-color: var(--sage); box-shadow: 0 24px 50px -28px rgba(18, 39, 44, 0.45); }
.tool-card .art { background: var(--teal); aspect-ratio: 16 / 7; display: grid; place-items: center; overflow: hidden; }
.tool-card .art svg { width: 100%; height: 100%; }
.tool-card .body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.tool-card .q { font-size: 0.8rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
.tool-card h3 { font-size: 1.35rem; }
.tool-card p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.tool-card .go { margin-top: auto; padding-top: 0.75rem; font-weight: 750; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 0.4rem; }
.tool-card:hover .go { color: var(--green); }
.tool-card .go .arrow { transition: transform 0.15s ease; }
.tool-card:hover .go .arrow { transform: translateX(3px); }
.tool-card .time { font-size: 0.82rem; font-weight: 650; color: var(--muted); }
@media (min-width: 861px) {
  .tool-card.wide { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: none; }
  .tool-card.wide .art { aspect-ratio: auto; min-height: 100%; }
  .tool-card.wide .body { justify-content: center; padding: 1.75rem 2rem; }
}

.next-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.next-tools a { display: block; padding: 1.15rem 1.25rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); text-decoration: none; }
.next-tools a:hover { border-color: var(--green); }
.next-tools b { display: block; font-size: 1.02rem; margin-bottom: 0.2rem; }
.next-tools span { color: var(--muted); font-size: 0.92rem; }

.honest {
  border-left: 3px solid var(--green); background: var(--card); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.2rem; font-size: 0.98rem; color: var(--ink);
}
.honest b { color: var(--teal); }
.sources { font-size: 0.82rem; color: var(--muted); margin-top: 1.5rem; }
.sources a { color: var(--muted); }

@media (max-width: 860px) {
  .capture, .tool-cards, .next-tools { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .lead-form .row2 { grid-template-columns: minmax(0, 1fr); }
}
