
/* TechLevin component styles. Every value comes from tokens.css custom properties.
   Class prefix: tl-  (safe to drop into a WordPress block theme's style.css). */

body { background: var(--surface); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 26px; margin: 0; }
.tl-preview { padding: 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.tl-stack { display: grid; gap: 16px; }

/* ---------- Type helpers ---------- */
.tl-eyebrow { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-ink); }
.tl-h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4vw, 40px); line-height: 1.15; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.tl-h3 { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 30px; letter-spacing: -.01em; margin: 0; }
.tl-h4 { font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 26px; margin: 0; }
.tl-muted { color: var(--ink-muted); }
.tl-code { font-family: var(--font-mono); font-size: 14px; background: var(--surface-sunken); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 1px 6px; }

/* ---------- Button ---------- */
.tl-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); font-family: var(--font-body); font-size: 15px; line-height: 20px; font-weight: 600; padding: var(--space-3) 20px; min-height: 44px; box-sizing: border-box; border-radius: var(--radius-m); border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.tl-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.tl-btn--primary { background: var(--brand); color: var(--on-brand); }
.tl-btn--primary:hover { background: var(--brand-hover); }
.tl-btn--secondary { background: var(--surface-raised); color: var(--ink); border-color: var(--line-strong); }
.tl-btn--secondary:hover { border-color: var(--ink); }
.tl-btn--ghost { background: transparent; color: var(--brand-ink); padding-inline: 4px; }
.tl-btn--ghost:hover { text-decoration: underline; text-underline-offset: 4px; }
.tl-btn--lime { background: var(--lime); color: var(--on-lime); }
.tl-btn--lime:hover { filter: brightness(1.06); }
.tl-btn--lg { font-size: 16px; padding: 14px 24px; min-height: 52px; }
.tl-btn .tl-arrow { transition: transform .15s ease; }
.tl-btn:hover .tl-arrow { transform: translateX(3px); }

/* ---------- Badge ---------- */
.tl-badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-body); font-size: 13px; line-height: 18px; font-weight: 600; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--brand-tint); color: var(--brand-ink); white-space: nowrap; }
.tl-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tl-badge--neutral { background: var(--surface-sunken); color: var(--ink-muted); }
.tl-badge--warning { background: var(--warning-tint); color: var(--warning); }
.tl-badge--plain::before { display: none; }

/* ---------- Service card ---------- */
.tl-service { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-l); padding: var(--space-6); display: grid; gap: var(--space-4); align-content: start; box-shadow: var(--shadow-1); transition: box-shadow .2s ease, transform .2s ease; min-width: 0; }
.tl-service:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.tl-service__icon { width: 44px; height: 44px; border-radius: var(--radius-m); background: var(--brand-tint); color: var(--brand-ink); display: grid; place-items: center; }
.tl-service__icon svg { width: 22px; height: 22px; }
.tl-service p { margin: 0; color: var(--ink-muted); }
.tl-service__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-service__tags span { font-family: var(--font-mono); font-size: 12px; line-height: 18px; color: var(--ink-muted); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 2px 8px; }

/* ---------- App card (in-house products) ---------- */
.tl-app { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.tl-app__visual { background: var(--night); color: var(--on-night); padding: var(--space-6); min-height: 180px; position: relative; overflow: hidden; }
.tl-app__body { padding: var(--space-6); display: grid; gap: var(--space-3); align-content: start; }
.tl-app__head { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.tl-app__mark { width: 40px; height: 40px; border-radius: var(--radius-m); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 18px; background: var(--brand); color: var(--on-brand); }
.tl-app__mark--lime { background: var(--lime); color: var(--on-lime); }
.tl-app ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; color: var(--ink-muted); font-size: 15px; }
.tl-app li { display: flex; gap: 8px; }
.tl-app li::before { content: "✓"; color: var(--brand-ink); font-weight: 700; }
.tl-app__links { display: flex; gap: var(--space-4); flex-wrap: wrap; align-items: center; margin-top: var(--space-2); }

/* ---------- Stat ---------- */
.tl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface-raised); }
.tl-stat { padding: var(--space-5) var(--space-6); display: grid; gap: 4px; border-left: 1px solid var(--line); }
.tl-stat:first-child { border-left: 0; }
.tl-stat__num { font-family: var(--font-display); font-weight: 700; font-size: 48px; line-height: 52px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tl-stat__label { font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.tl-placeholder { outline: 1px dashed var(--warning); outline-offset: 2px; border-radius: 4px; }

/* ---------- Process step ---------- */
.tl-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--space-5); counter-reset: step; }
.tl-step { position: relative; display: grid; gap: var(--space-2); padding-top: var(--space-6); border-top: 2px solid var(--line); counter-increment: step; }
.tl-step::before { content: counter(step, decimal-leading-zero); position: absolute; top: -13px; left: 0; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; background: var(--brand); color: var(--on-brand); padding: 4px 8px; border-radius: var(--radius-s); }
.tl-step p { margin: 0; color: var(--ink-muted); font-size: 15px; line-height: 24px; }
.tl-step__meta { font-family: var(--font-mono); font-size: 12px; color: var(--brand-ink); }

/* ---------- Testimonial ---------- */
.tl-quote { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-l); padding: var(--space-6); display: grid; gap: var(--space-5); align-content: space-between; margin: 0; min-width: 0; }
.tl-quote blockquote { margin: 0; font-size: 18px; line-height: 28px; }
.tl-quote figcaption { display: flex; align-items: center; gap: var(--space-3); font-size: 14px; line-height: 20px; }
.tl-quote__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-ink); display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); }
.tl-quote strong { display: block; }

/* ---------- FAQ ---------- */
.tl-faq { display: grid; gap: var(--space-3); }
.tl-faq details { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 0 var(--space-5); }
.tl-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: 18px 0; font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 26px; }
.tl-faq summary::-webkit-details-marker { display: none; }
.tl-faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 20px; color: var(--brand-ink); transition: transform .2s ease; flex: none; }
.tl-faq details[open] summary::after { transform: rotate(45deg); }
.tl-faq summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.tl-faq details p { margin: 0 0 var(--space-5); color: var(--ink-muted); max-width: 68ch; }

/* ---------- CTA band ---------- */
.tl-cta { background: var(--night); color: var(--on-night); border-radius: var(--radius-l); padding: var(--space-8) var(--space-6); display: grid; gap: var(--space-5); position: relative; overflow: hidden; background-image: radial-gradient(color-mix(in srgb, var(--on-night) 14%, transparent) 1px, transparent 1.5px); background-size: 24px 24px; }
.tl-cta .tl-h2 { color: var(--on-night); max-width: 18ch; }
.tl-cta p { margin: 0; color: var(--on-night-muted); max-width: 52ch; }
.tl-cta__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.tl-cta .tl-btn--secondary { background: transparent; color: var(--on-night); border-color: var(--on-night-muted); }

/* ---------- Site header ---------- */
.tl-header { background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.tl-header__inner { max-width: var(--container-max); margin: 0 auto; height: var(--nav-height); display: flex; align-items: center; gap: var(--space-6); padding: 0 var(--space-5); }
.tl-wordmark { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.03em; color: var(--ink); text-decoration: none; display: inline-block; white-space: nowrap; }
.tl-wordmark i { font-style: normal; color: var(--brand-ink); }
.tl-nav { display: flex; gap: var(--space-5); margin-right: auto; }
.tl-nav a { color: var(--ink-muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.tl-nav a:hover, .tl-nav a[aria-current] { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
