/* Title Lab Tool styles — /tools/title-lab */

.tl-page {
  padding: 100px 24px 120px;
  max-width: 820px;
  margin: 0 auto;
}

/* Hero */
.tl-hero { text-align: center; margin-bottom: 48px; }
.tl-hero .eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.tl-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800; line-height: 1.06; letter-spacing: -1.5px; margin-bottom: 16px;
}
.tl-hero p { font-size: 17px; color: var(--text-muted); max-width: 520px; margin: 0 auto; line-height: 1.7; }

/* Input card */
.tl-input-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 36px; margin-bottom: 16px;
}
.tl-input-label {
  display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px;
}
.tl-textarea {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 18px; font-size: 15px;
  font-family: var(--font-body); color: var(--text); outline: none;
  transition: border-color 0.18s; resize: vertical; min-height: 72px; box-sizing: border-box;
}
.tl-textarea:focus { border-color: var(--accent); }
.tl-textarea::placeholder { color: var(--text-muted); opacity: 0.6; }

.tl-niche-row { display: flex; gap: 12px; align-items: flex-end; margin-top: 16px; }
.tl-niche-field { flex: 1; }
.tl-input {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 18px; font-size: 15px;
  font-family: var(--font-body); color: var(--text); outline: none;
  transition: border-color 0.18s; box-sizing: border-box;
}
.tl-input:focus { border-color: var(--accent); }
.tl-input::placeholder { color: var(--text-muted); opacity: 0.6; }

.tl-btn {
  background: var(--accent); color: #fff; border: none; border-radius: var(--radius);
  padding: 14px 28px; font-family: var(--font-display); font-size: 14px;
  font-weight: 700; cursor: pointer; white-space: nowrap; transition: opacity 0.18s; flex-shrink: 0;
}
.tl-btn:hover { opacity: 0.88; }
.tl-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.tl-prefills { font-size: 12px; color: var(--text-muted); margin-top: 10px; }
.tl-prefills span { cursor: pointer; color: var(--accent); text-decoration: underline; margin-right: 8px; }
.tl-prefills span:hover { opacity: 0.75; }

/* Error */
.tl-error {
  display: none; background: rgba(255,69,58,0.1); border: 1px solid rgba(255,69,58,0.3);
  border-radius: var(--radius); padding: 12px 16px; font-size: 14px; color: #FF453A; margin-top: 12px;
}

/* Result */
.tl-result { display: none; }
.tl-result.visible { display: block; }

/* Cards */
.tl-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 16px; overflow: hidden; }
.tl-card-header {
  padding: 16px 20px 12px; font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-muted); background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.tl-card-header.accent { color: var(--accent); }

/* Titles table */
.tl-table { width: 100%; border-collapse: collapse; }
.tl-table th {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--text-muted); padding: 10px 14px; text-align: left; background: var(--surface-2);
}
.tl-table th.center { text-align: center; }
.tl-table td { padding: 11px 14px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text); line-height: 1.5; }
.tl-table td.center { text-align: center; }
.tl-table td .tl-why { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* Tier colors */
.tier-s { color: #28C840; font-weight: 800; }
.tier-a { color: #FF9F0A; font-weight: 800; }
.tier-b { color: #B0B2BC; font-weight: 700; }

/* Recommended badge */
.badge-rec {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; color: var(--accent); background: rgba(255,107,44,0.12);
  border: 1px solid rgba(255,107,44,0.3); border-radius: 4px; padding: 1px 6px;
  margin-left: 7px; vertical-align: middle;
}

/* Legend */
.tl-legend { display: flex; gap: 20px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 12px; }
.tl-legend-item { display: flex; align-items: center; gap: 6px; }

/* Hooks */
.tl-hooks { padding: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.tl-hook-chip {
  display: inline-block; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 6px; padding: 7px 14px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.5px; color: var(--text); text-transform: uppercase;
}

/* Email capture */
.tl-email-card {
  background: linear-gradient(135deg, rgba(255,107,44,0.08) 0%, rgba(255,107,44,0.02) 100%);
  border: 1px solid rgba(255,107,44,0.25); border-radius: var(--radius-lg);
  padding: 32px 36px; margin-top: 28px; text-align: center;
}
.tl-email-card h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.tl-email-card p { font-size: 14px; color: var(--text-muted); max-width: 480px; margin: 0 auto 24px; line-height: 1.7; }
.tl-email-row { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.tl-email-input {
  flex: 1; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 13px 16px; font-size: 14px; font-family: var(--font-body); color: var(--text);
  outline: none; transition: border-color 0.18s;
}
.tl-email-input:focus { border-color: var(--accent); }
.tl-email-input::placeholder { color: var(--text-muted); opacity: 0.6; }
.tl-email-btn {
  background: var(--accent); color: #fff; border: none; border-radius: var(--radius);
  padding: 13px 22px; font-family: var(--font-display); font-size: 13px;
  font-weight: 700; cursor: pointer; white-space: nowrap; transition: opacity 0.18s;
}
.tl-email-btn:hover { opacity: 0.88; }
.tl-email-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.tl-email-success { display: none; font-size: 15px; color: #28C840; font-weight: 600; margin-top: 14px; }
.tl-email-error { display: none; font-size: 13px; color: #FF453A; margin-top: 10px; }

/* Cross-link */
.tl-crosslink {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px 28px; margin-top: 24px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.tl-crosslink p { margin: 0; font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.tl-crosslink a {
  display: inline-block; border: 1px solid var(--accent); color: var(--accent);
  border-radius: var(--radius); padding: 10px 18px; font-family: var(--font-display);
  font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background 0.18s, color 0.18s;
}
.tl-crosslink a:hover { background: var(--accent); color: #fff; }

/* Spinner */
.tl-spinner {
  display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff; border-radius: 50%; animation: tl-spin 0.7s linear infinite;
  vertical-align: middle; margin-right: 6px;
}
@keyframes tl-spin { to { transform: rotate(360deg); } }

/* Nav */
.tl-nav {
  position: fixed; top: 0; left: 0; right: 0; height: 64px;
  background: rgba(12,13,15,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); display: flex; align-items: center;
  justify-content: space-between; padding: 0 32px; z-index: 100;
}
.tl-nav-logo { font-family: var(--font-display); font-size: 17px; font-weight: 800; letter-spacing: -0.5px; color: var(--text); text-decoration: none; }
.tl-nav-logo span { color: var(--accent); }
.tl-nav-links { display: flex; align-items: center; gap: 24px; }
.tl-nav-links a { font-size: 13px; color: var(--text-muted); text-decoration: none; transition: color 0.18s; }
.tl-nav-links a:hover { color: var(--text); }
.tl-nav-cta { background: var(--accent) !important; color: #fff !important; padding: 8px 18px; border-radius: var(--radius); font-weight: 700 !important; font-size: 13px !important; }

@media (max-width: 600px) {
  .tl-niche-row { flex-direction: column; }
  .tl-btn { width: 100%; }
  .tl-email-row { flex-direction: column; }
  .tl-email-btn { width: 100%; }
  .tl-nav-links { display: none; }
  .tl-crosslink { flex-direction: column; }
}
