/* Shared look for the free utility tools (case converter, mortgage calculator, stopwatch).
   Loaded after landing.css, so it uses the same colors, fonts and card style. */

.tk-card { max-width: 860px; margin: 34px auto 0; background: #fff; border: 1px solid var(--lp-line); border-radius: 20px; padding: 26px 28px 28px; text-align: left; box-shadow: 0 14px 34px rgba(16, 16, 16, 0.06); }
.tk-card.tk-narrow { max-width: 640px; }

/* Buttons */
.tk-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border: 2px solid var(--lp-blue); border-radius: 50px; background: #fff; color: var(--lp-blue-dark); font-family: inherit; font-size: 17px; font-weight: 700; line-height: 1.2; cursor: pointer; transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease; }
.tk-btn:hover, .tk-btn:focus-visible { background: var(--lp-tint); transform: translateY(-1px); }
.tk-btn:focus-visible { outline: 2px solid var(--lp-blue-dark); outline-offset: 2px; }
.tk-btn.is-primary { background: #3fbeef; border-color: #3fbeef; color: #fff; }
.tk-btn.is-primary:hover, .tk-btn.is-primary:focus-visible { background: #2aa9de; border-color: #2aa9de; }
.tk-btn.is-quiet { border-color: var(--lp-line); color: var(--lp-text); }
.tk-btn.is-quiet:hover, .tk-btn.is-quiet:focus-visible { border-color: #c9cfdc; background: #f7f8fc; }
.tk-btn[disabled] { opacity: 0.5; cursor: default; transform: none; }
.tk-btn svg { width: 18px; height: 18px; flex: none; fill: currentColor; }

/* Fields */
.tk-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.tk-field { min-width: 0; }
.tk-field label { display: block; font-weight: 700; font-size: 16px; color: var(--lp-ink); margin-bottom: 6px; }
.tk-field small { display: block; margin-top: 5px; font-size: 14px; line-height: 1.4; color: #5a646b; }
.tk-in { display: flex; align-items: center; border: 1px solid #c9cfdc; border-radius: 12px; background: #fff; overflow: hidden; }
.tk-in span { padding: 0 12px; font-weight: 700; color: #5a646b; white-space: nowrap; }
.tk-in input, .tk-in select { flex: 1; min-width: 0; border: 0; font-size: 19px; padding: 12px 14px; font-family: inherit; color: var(--lp-ink); background: transparent; }
.tk-in input:focus, .tk-in select:focus { outline: none; }
.tk-in:focus-within { outline: 2px solid var(--lp-blue); outline-offset: 2px; }
.tk-text { width: 100%; min-height: 260px; padding: 16px 18px; border: 1px solid #c9cfdc; border-radius: 14px; font-family: inherit; font-size: 18px; line-height: 1.55; color: var(--lp-ink); background: #fff; resize: vertical; }
.tk-text:focus { outline: 2px solid var(--lp-blue); outline-offset: 2px; }

/* Results */
.tk-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tk-stat { background: #fff; border: 1px solid var(--lp-line); border-radius: 18px; padding: 18px 20px; }
.tk-stat b { display: block; font-size: clamp(26px, 3.6vw, 34px); line-height: 1.1; color: var(--lp-blue-dark); }
.tk-stat span { display: block; margin-top: 6px; font-weight: 700; color: var(--lp-ink); }
.tk-stat p { margin: 4px 0 0; font-size: 15px; line-height: 1.45; }
.tk-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin: 12px 0 16px; font-size: 15px; color: #5a646b; }
.tk-note { margin: 14px 0 0; font-size: 15px; color: #5a646b; }

/* Toast */
.tk-toast { position: fixed; left: 50%; bottom: 96px; z-index: 9999; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; background: var(--lp-ink); color: #fff; padding: 10px 20px; border-radius: 50px; font-weight: 700; font-size: 16px; transition: opacity 0.2s ease, transform 0.2s ease; }
.tk-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 700px) {
  .tk-card { padding: 20px 18px 22px; }
  .tk-fields { grid-template-columns: minmax(0, 1fr); }
  .tk-stats { grid-template-columns: minmax(0, 1fr); }
}
