/* Public template library (/app-templates). Builds on landing.css tokens and the .tpl card. */
.at-main { width: 100%; }
.at-hero { padding: clamp(32px, 5vw, 64px) 0 clamp(20px, 3vw, 32px); }
.at-crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--subtle); margin-bottom: 18px; }
.at-crumbs a { color: var(--muted); text-decoration: none; }
.at-crumbs a:hover { color: var(--text); }
.at-hero h1 { margin: 0; font-size: clamp(36px, 5vw, 60px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; color: var(--text); max-width: 18ch; }
.at-lead { margin: 18px 0 0; max-width: 66ch; color: var(--muted); font-size: clamp(16px, 1.5vw, 18px); line-height: 1.6; }
.at-screens { margin: 12px 0 0; max-width: 66ch; color: var(--muted); font-size: 15px; line-height: 1.6; }
.at-screens b { color: var(--text); font-weight: 600; }
.at-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.at-ctas .btn-ghost { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: 12px; border: 1px solid var(--line-strong); text-decoration: none; font-weight: 600; font-size: 15px; }

.at-cats { position: sticky; top: 0; z-index: 5; padding: 12px 0; background: color-mix(in srgb, var(--ink) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.at-chips { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.at-chips::-webkit-scrollbar { display: none; }
.at-chips li { flex: 0 0 auto; }
.at-chips a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: hsla(0,0%,100%,.03); color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; transition: border-color .2s var(--ease), color .2s var(--ease); }
.at-chips a span { color: var(--subtle); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.at-chips a:hover { color: var(--text); border-color: var(--line-strong); }
.at-chips a[aria-current="page"] { color: #fff; border-color: transparent; background: var(--grad); }
.at-chips a[aria-current="page"] span { color: hsla(0,0%,100%,.8); }

.at-grid-sec { padding: clamp(28px, 4vw, 48px) 0 0; }
.at-h2 { margin: 0 0 24px; font-size: 20px; font-weight: 650; letter-spacing: -0.01em; color: var(--text); }
.at-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: clamp(20px, 2.4vw, 32px) clamp(16px, 2vw, 28px); }
.at-card .tpl { display: block; width: 100%; }
.at-meta { margin-top: 14px; }
.at-meta h3 { margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.at-meta h3 a { color: var(--text); text-decoration: none; }
.at-cat { margin: 3px 0 0; font-size: 13px; color: var(--accent); }
.at-has { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.at-preview { display: inline-block; margin-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--text); text-decoration: none; }
.at-preview:hover { color: var(--accent); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.at-how { padding: var(--gap) 0; }
.at-steps { margin: 28px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.at-steps li { counter-increment: s; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--muted); line-height: 1.55; font-size: 15px; }
.at-steps li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 14px; border-radius: 9px; background: var(--grad); color: #fff; font-weight: 700; font-size: 14px; }
.at-steps b { display: block; color: var(--text); margin-bottom: 4px; }
.at-more { margin: 24px 0 0; color: var(--muted); }
.at-more a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .at-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .at-has { display: none; } }
