/* /public/tools/style.css — Tool landing page layout */
/* All color/font variables inherited from ui.css */

/* ─── Page wrapper ─────────────────────────────── */
.tl-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--space-4, 24px);
}

/* ─── Hero ─────────────────────────────────────── */
.tl-hero {
  padding: 72px 0 56px;
  text-align: center;
}

.tl-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 20px;
}

.tl-h1 {
  display: block; /* override ui.css h1 { display: flex } */
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
  color: var(--text);
  margin: 0 0 18px;
  text-align: center;
}

.tl-lede {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 32px;
}

.tl-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Hero CTA buttons ─────────────────────────── */
/* Scoped to .tl-actions to avoid touching btn-* globally */
.tl-actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -.015em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(.22,1,.36,1),
              box-shadow 180ms cubic-bezier(.22,1,.36,1),
              background 140ms ease,
              border-color 140ms ease;
}

/* Primary — full-bleed gradient with glow */
.tl-actions a.btn-primary {
  background: linear-gradient(155deg, var(--accent, #6366f1) 0%, var(--accent-hover, #4f46e5) 100%);
  color: #fff;
  border: none;
  box-shadow:
    0 1px 2px rgba(0,0,0,.08),
    0 4px 14px rgba(99,102,241,.35),
    inset 0 1px 0 rgba(255,255,255,.15);
}

.tl-actions a.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 2px 4px rgba(0,0,0,.10),
    0 8px 24px rgba(99,102,241,.45),
    inset 0 1px 0 rgba(255,255,255,.15);
  color: #fff;
  text-decoration: none;
}

.tl-actions a.btn-primary:active {
  transform: translateY(0);
  box-shadow:
    0 1px 2px rgba(0,0,0,.08),
    0 2px 8px rgba(99,102,241,.25),
    inset 0 1px 0 rgba(255,255,255,.15);
}

/* Ghost — card-surface pill with crisp border */
.tl-actions a.btn-ghost {
  background: var(--card, #fff);
  color: var(--text, #0f172a);
  border: 1.5px solid var(--border, rgba(0,0,0,.11));
  box-shadow:
    0 1px 2px rgba(0,0,0,.04),
    0 2px 8px rgba(0,0,0,.04);
}

[data-theme="dark"] .tl-actions a.btn-ghost {
  background: var(--card, #0f172a);
  border-color: rgba(255,255,255,.12);
  box-shadow:
    0 1px 2px rgba(0,0,0,.2),
    0 2px 8px rgba(0,0,0,.15);
}

.tl-actions a.btn-ghost:hover {
  transform: translateY(-2px);
  box-shadow:
    0 2px 4px rgba(0,0,0,.06),
    0 6px 18px rgba(0,0,0,.08);
  border-color: var(--accent, #6366f1);
  color: var(--accent, #6366f1);
  text-decoration: none;
}

.tl-actions a.btn-ghost:active {
  transform: translateY(0);
}

/* Bottom CTA strip uses same primary style */
.tl-cta-strip a.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 15px 32px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -.015em;
  text-decoration: none;
  background: linear-gradient(155deg, var(--accent, #6366f1) 0%, var(--accent-hover, #4f46e5) 100%);
  color: #fff;
  border: none;
  box-shadow:
    0 1px 2px rgba(0,0,0,.08),
    0 4px 14px rgba(99,102,241,.35),
    inset 0 1px 0 rgba(255,255,255,.15);
  transition: transform 180ms cubic-bezier(.22,1,.36,1),
              box-shadow 180ms cubic-bezier(.22,1,.36,1);
}

.tl-cta-strip a.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 2px 4px rgba(0,0,0,.10),
    0 8px 24px rgba(99,102,241,.45),
    inset 0 1px 0 rgba(255,255,255,.15);
  color: #fff;
  text-decoration: none;
}

/* ─── Sections ─────────────────────────────────── */
.tl-section {
  padding: 56px 0;
  border-top: 1px solid var(--border, rgba(0,0,0,.07));
}

[data-theme="dark"] .tl-section {
  border-top-color: rgba(255,255,255,.07);
}

.tl-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}

.tl-h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 750;
  letter-spacing: -.025em;
  color: var(--text);
  margin: 0 0 10px;
}

.tl-sub {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 36px;
}

/* ─── How it works strip ───────────────────────── */
.tl-how-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
}

.tl-how-step {
  background: var(--card);
  border: 1px solid var(--border, rgba(0,0,0,.07));
  border-radius: var(--radius-lg, 20px);
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
}

[data-theme="dark"] .tl-how-step {
  border-color: rgba(255,255,255,.07);
}

.tl-how-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.tl-how-h {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}

.tl-how-p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* ─── Use case cards ───────────────────────────── */
.tl-cases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
}

.tl-case-card {
  background: var(--card);
  border: 1px solid var(--border, rgba(0,0,0,.07));
  border-radius: var(--radius-lg, 20px);
  padding: 24px 22px;
  box-shadow: var(--shadow-soft);
}

[data-theme="dark"] .tl-case-card {
  border-color: rgba(255,255,255,.07);
}

.tl-case-who {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}

.tl-case-h {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
}

.tl-case-p {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

/* ─── Why cards ────────────────────────────────── */
.tl-why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
}

.tl-why-card {
  background: var(--card);
  border: 1px solid var(--border, rgba(0,0,0,.07));
  border-radius: var(--radius-lg, 20px);
  padding: 26px 22px;
  box-shadow: var(--shadow-soft);
}

[data-theme="dark"] .tl-why-card {
  border-color: rgba(255,255,255,.07);
}

.tl-why-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.tl-why-h {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
}

.tl-why-p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

/* ─── FAQ ──────────────────────────────────────── */
.tl-faq-list {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tl-faq-item {
  background: var(--card);
  border: 1px solid var(--border, rgba(0,0,0,.07));
  border-radius: var(--radius, 14px);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

[data-theme="dark"] .tl-faq-item {
  border-color: rgba(255,255,255,.07);
}

.tl-faq-item summary {
  padding: 18px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}

.tl-faq-item summary::-webkit-details-marker { display: none; }

.tl-faq-item summary::after {
  content: "+";
  font-size: 1.1rem;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform var(--t, 200ms);
}

.tl-faq-item[open] summary::after {
  transform: rotate(45deg);
}

.tl-faq-body {
  padding: 0 20px 18px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ─── Bottom CTA strip ─────────────────────────── */
.tl-cta-strip {
  text-align: center;
  padding: 64px 0 48px;
  border-top: 1px solid var(--border, rgba(0,0,0,.07));
}

[data-theme="dark"] .tl-cta-strip {
  border-top-color: rgba(255,255,255,.07);
}

.tl-cta-h {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--text);
  margin: 0 0 12px;
}

.tl-cta-p {
  font-size: 1rem;
  color: var(--muted);
  margin: 0 auto 28px;
  max-width: 480px;
}

/* ─── Related tools ────────────────────────────── */
.tl-related {
  padding: 40px 0 56px;
}

.tl-related-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}

.tl-related-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tl-related-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: var(--card);
  border: 1px solid var(--border, rgba(0,0,0,.07));
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: box-shadow var(--t, 200ms), border-color var(--t, 200ms);
}

[data-theme="dark"] .tl-related-chip {
  border-color: rgba(255,255,255,.07);
}

.tl-related-chip:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* ─── All-tools grid ───────────────────────────── */
.tl-tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}

.tl-tool-card {
  background: var(--card);
  border: 1px solid var(--border, rgba(0,0,0,.07));
  border-radius: var(--radius-lg, 20px);
  padding: 26px 24px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: box-shadow 180ms, border-color 180ms, transform 180ms cubic-bezier(.22,1,.36,1);
}

.tl-tool-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  transform: translateY(-2px);
}

[data-theme="dark"] .tl-tool-card {
  border-color: rgba(255,255,255,.07);
}

.tl-tool-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 14px;
}

.tl-tool-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.tl-tool-name {
  font-size: 1rem;
  font-weight: 750;
  color: var(--text);
}

.tl-tool-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent);
}

.tl-tool-desc {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 20px;
  flex: 1;
}

.tl-tool-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.tl-tool-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: -.01em;
  text-decoration: none;
  background: linear-gradient(155deg, var(--accent, #6366f1) 0%, var(--accent-hover, #4f46e5) 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(99,102,241,.3);
  transition: transform 180ms cubic-bezier(.22,1,.36,1), box-shadow 180ms;
}

.tl-tool-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(99,102,241,.4);
  color: #fff;
  text-decoration: none;
}

.tl-tool-more {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color 140ms;
}

.tl-tool-more:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ─── Responsive ───────────────────────────────── */
@media (max-width: 640px) {
  .tl-hero { padding: 48px 0 40px; }
  .tl-how-strip { grid-template-columns: 1fr; }
  .tl-cases-grid { grid-template-columns: 1fr; }
  .tl-why-grid { grid-template-columns: 1fr; }
  .tl-tools-grid { grid-template-columns: 1fr; }
}
