/* ═══════════════════════════════════════════════════════════════════════
   /tools — hub. "Free tools for building with web data." A uniform grid of
   tool cards; each opens its tool. Chrome + band adaptation via _shared.
   ═══════════════════════════════════════════════════════════════════════ */
@import "../_ds/fonts.css";
@import "../_ds/theme.css";
@import "../_shared/chrome.css";
@import "../_shared/components.css";
@import "../_shared/audience-switcher.css";

.th-main { position: relative; overflow-x: clip; }
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 640ms cubic-bezier(0.22,1,0.36,1), transform 640ms cubic-bezier(0.22,1,0.36,1); }
[data-reveal].is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* hero */
.th-hero { padding: clamp(112px, 15vh, 172px) clamp(20px, 5vw, 80px) clamp(40px, 6vh, 72px); max-width: 1180px; margin-inline: auto; }
.th-h1 { font-family: var(--font-display); font-weight: 500; font-size: var(--mkt-hero-xl); line-height: 0.96; letter-spacing: -0.03em; color: var(--text-primary); margin: 0; max-width: 15ch; }
.th-sub { font-family: var(--font-base); font-size: var(--mkt-body); line-height: 1.5; color: var(--text-secondary); margin: 22px 0 0; max-width: 56ch; }

/* uniform card grid */
.th-grid { padding: clamp(20px, 3vh, 36px) clamp(20px, 5vw, 80px) clamp(60px, 9vh, 110px); max-width: 1180px; margin-inline: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 24px); }
.th-card { display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--border-subtle); border-radius: 20px; padding: clamp(26px, 3vw, 42px); text-decoration: none; transition: border-color 220ms ease, transform 220ms ease; }
.th-card:hover { border-color: var(--border); transform: translateY(-2px); }
/* Spacing only — visual is the shared DS .tag atom (components.css). */
.th-tool-tag { display: inline-block; margin: 0 0 18px; }
.th-tool-h { font-family: var(--font-display); font-weight: 500; font-size: var(--mkt-h3); line-height: 1.04; letter-spacing: -0.02em; color: var(--text-primary); margin: 0; }
.th-tool-desc { font-family: var(--font-base); font-size: clamp(15px, 1.1vw, 16.5px); line-height: 1.5; color: var(--text-secondary); margin: 14px 0 0; max-width: 42ch; }
.th-card .link-cta { margin-top: auto; padding-top: 24px; }

/* closer (purple) */
.th-closer { position: relative; background: #7C4FE8; padding: clamp(96px, 15vh, 190px) clamp(20px, 5vw, 80px); text-align: center; }
.th-closer-h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--mkt-h2); line-height: 1.0; letter-spacing: -0.026em; color: #fff; margin: 0 auto; max-width: 16ch; }
.th-closer-lead { font-family: var(--font-base); font-size: var(--mkt-body); line-height: 1.5; color: rgba(255,255,255,0.9); margin: 20px auto 0; max-width: 46ch; }
.th-closer-cta { margin-top: clamp(28px, 4vh, 40px); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.th-closer-tagline { font-family: var(--font-code); font-size: 12.5px; color: rgba(255,255,255,0.82); }

@media (max-width: 820px) { .th-grid { grid-template-columns: 1fr; } }
