/* Free tools page. Uses the colours and base styles from client.css. */
.a-nav { display: flex; gap: 8px; align-items: center; }
.a-nav a.a-btn { text-decoration: none; display: inline-block; }
.t-intro { max-width: 640px; margin: -6px 0 18px; }
.t-back { display: inline-block; text-decoration: none; }

/* Menu */
.t-menu { display: grid; gap: 12px; grid-template-columns: 1fr; }
.t-tool {
  display: block; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--p1);
  border-radius: 16px; padding: 16px 18px;
}
.t-tool:hover { border-color: var(--p1); background: var(--p-soft); }
.t-tool strong { display: block; font-size: 18px; color: var(--p-dark); }
.t-tool span { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }

/* Form */
.t-fields { display: grid; gap: 4px 18px; grid-template-columns: 1fr; }
.t-field label, .t-seg legend { font-size: 14px; font-weight: 600; margin-top: 14px; }
.t-help { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.t-seg { border: 0; padding: 0; margin: 0; min-width: 0; }
.t-seg legend { padding: 0; margin-bottom: 6px; }
.t-seg label {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; margin: 0 8px 8px 0;
  padding: 10px 14px; border: 1px solid #c9bde0; border-radius: 10px; background: #fff; cursor: pointer;
}
.t-seg input { width: auto; margin: 0; accent-color: var(--p1); }
.t-seg label:has(input:checked) { border-color: var(--p1); background: var(--p-soft); }
.t-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.t-unit { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--p1); cursor: pointer; }
.t-actions { margin-top: 18px; }
.t-actions .a-btn { padding: 13px 28px; }

/* Result */
.t-card { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--p1); border-radius: 16px; padding: 18px; margin-top: 18px; }
.t-card h2 { font-size: 15px; margin: 0; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.t-big { font-size: 32px; font-weight: 800; color: var(--p-dark); margin: 6px 0 4px; line-height: 1.15; }
.t-card p { margin: 0 0 8px; }
.t-card .t-note { color: var(--muted); font-size: 14px; }
.t-card p:last-child { margin-bottom: 0; }

.t-disclaimer { margin: 18px 0; }
.t-cta { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.t-cta h2 { margin: 0 0 4px; font-size: 20px; color: var(--p-dark); }
.t-cta p { margin: 0; }
.t-cta .a-btn { text-decoration: none; }

@media (min-width: 720px) {
  .t-menu { grid-template-columns: 1fr 1fr; }
  .t-fields { grid-template-columns: 1fr 1fr; }
  .t-wide { grid-column: 1 / -1; }
}
