/* ==========================================================================
   Trackity Theme — Design System
   Dark, green-accented, Linear/Vercel/Raycast-inspired.
   ========================================================================== */

/* ---------- Font ---------- */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design Tokens ---------- */
:root {
	/* Brand */
	--tk-green: #00e676;        /* primary CTA / highlights / stats / active */
	--tk-green-bright: #00ff88; /* hover / glow / charts */
	--tk-green-700: #00b85f;
	--tk-green-300: #86efac;
	--tk-green-soft: rgba(0, 230, 118, 0.12);
	--tk-green-line: rgba(0, 230, 118, 0.28);

	/* Surfaces */
	--tk-bg: #050505;
	--tk-bg-soft: #0a0a0a;
	--tk-band: #0c0c0e; /* subtle alternating section background */
	--tk-card: #0f0f0f;
	--tk-elevated: #18181b;
	--tk-border: #27272a;
	--tk-border-soft: #1c1c1f;

	/* Text */
	--tk-text: #fafafa;
	--tk-text-2: #b3b3b3;
	--tk-muted: #8a8a93;

	/* Light surfaces (blog content / light sections) */
	--tk-light: #f7f8f7;
	--tk-light-card: #ffffff;
	--tk-light-border: #e6e8e6;
	--tk-light-text: #0a0a0a;
	--tk-light-text-2: #52525b;

	/* Effects */
	--tk-gradient: linear-gradient(135deg, #00e676 0%, #00ff88 50%, #86efac 100%);
	--tk-gradient-text: linear-gradient(120deg, #00ff88 0%, #00e676 60%, #86efac 100%);
	--tk-glow: 0 0 24px rgba(0, 230, 118, 0.30), 0 0 64px rgba(0, 230, 118, 0.16);
	--tk-glow-sm: 0 0 16px rgba(0, 230, 118, 0.25);
	--tk-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 24px 60px -24px rgba(0, 0, 0, 0.8);
	--tk-shadow-card: 0 1px 0 rgba(255, 255, 255, 0.02) inset, 0 12px 32px -16px rgba(0, 0, 0, 0.7);

	/* Type */
	--tk-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--tk-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Roboto Mono", Menlo, monospace;

	/* Layout */
	--tk-container: 1200px;
	--tk-container-wide: 1320px;
	--tk-container-narrow: 820px;
	--tk-gutter: clamp(1.25rem, 4vw, 2.5rem);
	--tk-radius: 16px;
	--tk-radius-lg: 24px;
	--tk-radius-sm: 10px;
	--tk-radius-pill: 999px;
	--tk-header-h: 72px;

	/* Spacing scale */
	--tk-section-y: clamp(4rem, 9vw, 8rem);

	--tk-ease: cubic-bezier(0.22, 1, 0.36, 1);

	color-scheme: dark;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
html { scroll-padding-top: calc(var(--tk-header-h) + 20px); }
/* The off-canvas mobile menu sits off-screen (translateX) and only exists on
   mobile, so clip horizontal overflow there. On desktop we hide it instead, so
   the root needs no overflow clip and position:sticky (sidebar) keeps working. */
@media (max-width: 900px) { html { overflow-x: clip; } }
@media (min-width: 901px) { .tk-mobile-nav { display: none; } }

body {
	font-family: var(--tk-font);
	background: var(--tk-bg);
	color: var(--tk-text);
	line-height: 1.6;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-feature-settings: "cv05" 1, "cv08" 1, "ss01" 1;
	overflow-x: hidden;
	text-rendering: optimizeLegibility;
}

img, picture, svg, video, canvas { display: block; max-width: 100%; height: auto; }
svg { fill: currentColor; }
a { color: inherit; text-decoration: none; transition: color 0.18s var(--tk-ease); }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--tk-green); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(0, 230, 118, 0.28); color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 { line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; color: var(--tk-text); }
h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); letter-spacing: -0.035em; font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.0625rem; }
p { color: var(--tk-text-2); }
strong { color: var(--tk-text); font-weight: 600; }
small { font-size: 0.8125rem; }
code, kbd, pre { font-family: var(--tk-mono); }

.tk-grad-text {
	background: var(--tk-gradient-text);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}
.tk-green-text { color: var(--tk-green); }

/* ---------- Layout primitives ---------- */
.tk-container { width: 100%; max-width: var(--tk-container); margin-inline: auto; padding-inline: var(--tk-gutter); }
.tk-container.is-wide { max-width: var(--tk-container-wide); }
.tk-container.is-narrow { max-width: var(--tk-container-narrow); }
.tk-section { padding-block: var(--tk-section-y); position: relative; }
/* Section rhythm: alternate sections get gentle depth + a whisper of brand glow
   at the top, so adjacent blocks separate without a harsh edge. */
#tk-main > section { position: relative; background: var(--tk-bg); }
#tk-main > section:nth-of-type(even) {
	background:
		radial-gradient(120% 80% at 50% 0%, rgba(0, 230, 118, 0.028), transparent 62%),
		linear-gradient(180deg, #0b0b0e 0%, #070709 100%);
}
#tk-main > section:nth-of-type(even)::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent); }
/* The final section before the footer eases into it. */
#tk-main > section:last-child { padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.tk-section.is-tight { padding-block: clamp(3rem, 6vw, 5rem); }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--tk-green); color: #04140b; padding: 0.6rem 1rem; border-radius: 8px; font-weight: 600; }

/* Section header */
.tk-eyebrow {
	display: inline-flex; align-items: center; gap: 0.5rem;
	font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--tk-green);
}
.tk-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tk-green); box-shadow: var(--tk-glow-sm); }
.tk-section-head { max-width: 720px; margin-inline: auto; text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.tk-section-head .tk-eyebrow { margin-bottom: 1rem; }
.tk-section-head p { margin-top: 1rem; font-size: 1.0625rem; }
.tk-section-head.is-left { text-align: left; margin-inline: 0; }

/* ---------- Buttons ---------- */
.tk-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	font-weight: 600; font-size: 0.9375rem; line-height: 1;
	padding: 0.85rem 1.35rem; border-radius: var(--tk-radius-sm);
	transition: transform 0.18s var(--tk-ease), box-shadow 0.25s var(--tk-ease), background 0.2s var(--tk-ease), border-color 0.2s var(--tk-ease), color 0.2s var(--tk-ease);
	white-space: nowrap; border: 1px solid transparent; cursor: pointer;
}
.tk-btn svg { width: 1.05em; height: 1.05em; transition: transform 0.2s var(--tk-ease); }
.tk-btn--primary { background: var(--tk-green); color: #04140b; box-shadow: var(--tk-glow-sm); }
.tk-btn--primary:hover { background: var(--tk-green-bright); box-shadow: var(--tk-glow); transform: translateY(-1px); }
.tk-btn--primary:hover svg { transform: translateX(3px); }
.tk-btn--ghost { background: rgba(255, 255, 255, 0.03); color: var(--tk-text); border-color: var(--tk-border); }
.tk-btn--ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: #3f3f46; transform: translateY(-1px); }
.tk-btn--outline { background: transparent; color: var(--tk-text); border-color: var(--tk-border); }
.tk-btn--outline:hover { border-color: var(--tk-green); color: var(--tk-green); }
.tk-btn--lg { padding: 1rem 1.6rem; font-size: 1rem; }
.tk-btn--sm { padding: 0.6rem 1rem; font-size: 0.875rem; }
.tk-btn--block { width: 100%; }
.tk-link-arrow { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--tk-green); font-weight: 600; font-size: 0.9375rem; }
.tk-link-arrow svg { width: 1em; height: 1em; transition: transform 0.2s var(--tk-ease); }
.tk-link-arrow:hover { color: var(--tk-green-bright); }
.tk-link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Pills / badges ---------- */
.tk-pill {
	display: inline-flex; align-items: center; gap: 0.45rem;
	padding: 0.4rem 0.8rem; border-radius: var(--tk-radius-pill);
	background: var(--tk-green-soft); border: 1px solid var(--tk-green-line);
	font-size: 0.8125rem; font-weight: 600; color: var(--tk-green);
}
.tk-pill--neutral { background: rgba(255, 255, 255, 0.04); border-color: var(--tk-border); color: var(--tk-text-2); }
.tk-badge { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.25rem 0.55rem; border-radius: 6px; background: var(--tk-green); color: #04140b; }

/* ---------- Background FX ---------- */
.tk-glow-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.tk-glow-bg::before {
	content: ""; position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
	width: 900px; height: 600px; border-radius: 50%;
	background: radial-gradient(closest-side, rgba(0, 230, 118, 0.16), transparent 70%);
	filter: blur(20px);
}
.tk-grid-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
	background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 80%);
	mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 80%);
}
.tk-section > .tk-container,
.tk-hero > .tk-container,
.tk-pagehero > .tk-container { position: relative; z-index: 1; }

/* ==========================================================================
   Action top bar (announcement + conversion CTA)
   ========================================================================== */
.tk-topbar {
	background: linear-gradient(90deg, rgba(0,230,118,0.10), rgba(0,230,118,0.04));
	border-bottom: 1px solid var(--tk-green-line);
	font-size: 0.85rem;
	position: relative;
	z-index: 90;
}
.tk-topbar__inner { display: flex; align-items: center; justify-content: center; gap: 1rem; min-height: 42px; padding-block: 0.4rem; }
.tk-topbar__msg { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--tk-text); margin: 0; }
.tk-topbar__spark { color: var(--tk-green); display: inline-flex; flex-shrink: 0; }
.tk-topbar__cta { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; color: var(--tk-green); white-space: nowrap; }
.tk-topbar__cta svg { transition: transform 0.2s var(--tk-ease); }
.tk-topbar__cta:hover { color: var(--tk-green-bright); }
.tk-topbar__cta:hover svg { transform: translateX(3px); }
.tk-topbar__close { position: absolute; right: var(--tk-gutter); top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 6px; color: var(--tk-muted); font-size: 1.25rem; line-height: 1; display: grid; place-items: center; }
.tk-topbar__close:hover { color: var(--tk-text); background: rgba(255,255,255,0.06); }
.tk-topbar-off .tk-topbar { display: none; }
@media (max-width: 640px) {
	/* One tidy line: truncate the long message instead of wrapping to 3 rows,
	   keep the "Start free" CTA visible, cleaner uniform green tint. */
	.tk-topbar { font-size: 0.75rem; background: rgba(0, 230, 118, 0.07); }
	.tk-topbar__inner { justify-content: flex-start; flex-wrap: nowrap; gap: 0.5rem; min-height: 0; padding-block: 0.4rem; }
	.tk-topbar__spark { display: none; }
	.tk-topbar__msg { flex: 1; min-width: 0; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--tk-text-2); }
	.tk-topbar__cta { flex-shrink: 0; margin-left: 0.25rem; color: var(--tk-green-bright); }
	.tk-topbar__close { width: 20px; height: 20px; font-size: 1.1rem; }
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.tk-header { position: sticky; top: 0; z-index: 100; transition: background 0.3s var(--tk-ease), border-color 0.3s var(--tk-ease), backdrop-filter 0.3s; }
.tk-header__inner { display: flex; align-items: center; gap: 1.5rem; height: var(--tk-header-h); }
.tk-header.is-scrolled { background: rgba(5, 5, 5, 0.72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--tk-border-soft); }
.tk-brand { display: inline-flex; align-items: center; gap: 0.55rem; flex-shrink: 0; }
.tk-brand img, .tk-brand svg { height: 26px; width: auto; }
.tk-brand .tk-logo-text { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.03em; }
.tk-nav { display: flex; align-items: center; gap: 0.25rem; margin-inline: auto; }
.tk-nav__item { position: relative; }
.tk-nav__link {
	display: inline-flex; align-items: center; gap: 0.3rem;
	padding: 0.55rem 0.85rem; border-radius: 8px; font-size: 0.9375rem; font-weight: 500;
	color: var(--tk-text-2);
}
.tk-nav__link:hover, .tk-nav__item.is-open .tk-nav__link { color: var(--tk-text); }
.tk-nav__link .tk-caret { width: 0.7em; height: 0.7em; transition: transform 0.2s var(--tk-ease); opacity: 0.7; }
.tk-nav__item.is-open .tk-caret { transform: rotate(180deg); }
.tk-header__actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.tk-header__actions .tk-login { padding: 0.55rem 0.6rem; font-size: 0.9375rem; font-weight: 500; color: var(--tk-text-2); }
.tk-header__actions .tk-login:hover { color: var(--tk-text); }

/* Mega menu */
.tk-mega {
	position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
	width: min(880px, 92vw); background: var(--tk-elevated); border: 1px solid var(--tk-border);
	border-radius: var(--tk-radius); box-shadow: var(--tk-shadow); padding: 1.25rem;
	opacity: 0; visibility: hidden; transition: opacity 0.22s var(--tk-ease), transform 0.22s var(--tk-ease), visibility 0.22s;
	z-index: 120;
}
.tk-nav__item.is-open .tk-mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.tk-mega__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.4rem; }
.tk-mega--single .tk-mega__grid { grid-template-columns: 1fr; }
.tk-mega__link { display: flex; gap: 0.85rem; padding: 0.8rem; border-radius: 10px; transition: background 0.18s var(--tk-ease); }
.tk-mega__link:hover { background: rgba(255, 255, 255, 0.04); }
.tk-mega__ico { flex-shrink: 0; width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; background: var(--tk-green-soft); color: var(--tk-green); border: 1px solid var(--tk-green-line); }
.tk-mega__ico svg { width: 18px; height: 18px; }
.tk-mega__t { font-weight: 600; font-size: 0.9375rem; color: var(--tk-text); }
.tk-mega__d { font-size: 0.8125rem; color: var(--tk-muted); margin-top: 0.1rem; }

/* Mobile */
.tk-burger { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--tk-border); background: rgba(255,255,255,0.03); place-items: center; }
.tk-burger span { display: block; width: 18px; height: 2px; background: var(--tk-text); border-radius: 2px; position: relative; transition: 0.25s var(--tk-ease); }
.tk-burger span::before, .tk-burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--tk-text); border-radius: 2px; transition: 0.25s var(--tk-ease); }
.tk-burger span::before { top: -6px; } .tk-burger span::after { top: 6px; }
body.tk-menu-open .tk-burger span { background: transparent; }
/* When the mobile drawer is open, keep only the logo + close button in the bar. */
body.tk-menu-open .tk-header__actions .tk-btn--primary,
body.tk-menu-open .tk-header__actions .tk-login { display: none; }
body.tk-menu-open .tk-header { background: var(--tk-bg); border-bottom: 1px solid var(--tk-border-soft); }
body.tk-menu-open .tk-burger span::before { top: 0; transform: rotate(45deg); }
body.tk-menu-open .tk-burger span::after { top: 0; transform: rotate(-45deg); }

.tk-mobile-nav {
	position: fixed; inset: var(--tk-header-h) 0 0 0; z-index: 95;
	background: var(--tk-bg); padding: 1.5rem var(--tk-gutter) 2.5rem; overflow-y: auto;
	transform: translateX(100%); transition: transform 0.32s var(--tk-ease); visibility: hidden;
}
body.tk-menu-open .tk-mobile-nav { transform: translateX(0); visibility: visible; }
/* Accordion menu (Nespresso-style): each top-level row / group carries a single
   divider at its bottom; expanding a group reveals indented, muted sub-items. */
.tk-mobile-nav__link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.95rem 0.25rem; font-size: 1.1rem; font-weight: 600; }
.tk-mobile-nav > .tk-mobile-nav__link,
.tk-mobile-nav > .tk-mobile-acc { border-bottom: 1px solid var(--tk-border-soft); }
.tk-mobile-acc__toggle { border-bottom: 0; }
.tk-mobile-nav__sub { display: none; padding: 0.1rem 0 0.7rem 0.65rem; }
.tk-mobile-acc.is-open .tk-mobile-nav__sub { display: block; }
.tk-mobile-acc__toggle .tk-caret { color: var(--tk-muted); flex-shrink: 0; transition: transform 0.25s var(--tk-ease); }
.tk-mobile-acc.is-open .tk-mobile-acc__toggle .tk-caret { transform: rotate(180deg); }
.tk-mobile-nav__sub a { display: block; padding: 0.55rem 0; color: var(--tk-text-2); font-size: 0.95rem; }
.tk-mobile-nav__sub a:hover { color: var(--tk-text); }
.tk-mobile-nav__cta { margin-top: 1.5rem; display: grid; gap: 0.75rem; }

/* ==========================================================================
   Hero
   ========================================================================== */
.tk-hero { position: relative; padding-top: clamp(3rem, 6vw, 5.5rem); padding-bottom: clamp(3rem, 6vw, 5rem); overflow: hidden; }
.tk-hero__grid { display: grid; grid-template-columns: 1.05fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.tk-hero__copy { max-width: 600px; }
.tk-hero h1 { margin: 1.25rem 0; font-size: clamp(2.4rem, 5vw, 3.8rem); }
.tk-hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--tk-text-2); max-width: 48ch; }
.tk-hero__sub + .tk-hero__sub { margin-top: 0.9rem; }
.tk-hero__checks { margin: 1.5rem 0; display: grid; gap: 0.65rem; }
.tk-hero__checks li { display: flex; align-items: center; gap: 0.6rem; color: var(--tk-text); font-size: 0.95rem; }
.tk-check { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--tk-green-soft); border: 1px solid var(--tk-green-line); color: var(--tk-green); display: grid; place-items: center; }
.tk-check svg { width: 11px; height: 11px; }
.tk-hero__works { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.tk-hero__works-label { font-size: 0.8rem; color: var(--tk-muted); font-weight: 600; }
.tk-hero__works .tk-platform svg { width: 36px; height: 36px; }
.tk-hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.tk-hero__meta { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 1.5rem; color: var(--tk-muted); font-size: 0.8125rem; }
.tk-hero__meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.tk-hero__meta svg { width: 14px; height: 14px; color: var(--tk-green); }

/* ==========================================================================
   Dashboard mockup
   ========================================================================== */
.tk-dash {
	position: relative; background: linear-gradient(180deg, #0c0c0d, #0a0a0b); border: 1px solid var(--tk-border);
	border-radius: var(--tk-radius-lg); box-shadow: var(--tk-shadow); overflow: hidden;
}
.tk-dash::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: 0 0 0 1px rgba(0,230,118,0.06) inset; }
.tk-dash__bar { display: flex; align-items: center; gap: 0.6rem; padding: 0.8rem 1rem; border-bottom: 1px solid var(--tk-border-soft); }
.tk-dash__dots { display: flex; gap: 0.4rem; }
.tk-dash__dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a2a2e; display: block; }
.tk-dash__title { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; font-size: 0.875rem; }
.tk-dash__title img { height: 16px; width: auto; flex: none; }
.tk-dash__title .tk-dash__mark { width: 20px; height: 20px; border-radius: 6px; }
.tk-dash__chip { margin-left: auto; font-size: 0.7rem; color: var(--tk-text-2); padding: 0.25rem 0.6rem; border: 1px solid var(--tk-border); border-radius: 7px; }
.tk-dash__body { padding: 1rem; display: grid; gap: 0.85rem; }
.tk-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.65rem; }
.tk-stat { background: var(--tk-card); border: 1px solid var(--tk-border-soft); border-radius: 12px; padding: 0.8rem 0.85rem; }
.tk-stat__label { font-size: 0.7rem; color: var(--tk-muted); }
.tk-stat__value { font-size: clamp(1.1rem, 1.6vw, 1.5rem); font-weight: 700; letter-spacing: -0.02em; margin-top: 0.2rem; }
.tk-stat__delta { font-size: 0.72rem; font-weight: 600; color: var(--tk-green); display: inline-flex; align-items: center; gap: 0.2rem; margin-top: 0.25rem; }
.tk-stat__delta.is-down { color: #f87171; }
.tk-dash__chart { background: var(--tk-card); border: 1px solid var(--tk-border-soft); border-radius: 12px; padding: 1rem; }
.tk-dash__chart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; font-size: 0.8rem; color: var(--tk-text-2); }
.tk-spark { width: 100%; height: auto; }
.tk-spark path.line { fill: none; stroke: var(--tk-green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tk-spark path.area { opacity: 0.5; } /* fill set inline per-instance (unique gradient id) */
.tk-spark circle { fill: var(--tk-green-bright); }

/* Hero dashboard "Events Over Time" — animated, glowing trend line. Scoped to
   the dashboard chart so the step-card sparklines stay static. */
.tk-dash__chart:has(.tk-spark) { position: relative; overflow: hidden; }
.tk-dash__chart .tk-spark { display: block; overflow: visible; }
.tk-dash__chart .tk-spark__grid line { stroke: rgba(255, 255, 255, 0.06); stroke-width: 0.5; }
.tk-dash__chart .tk-spark path.line {
	filter: drop-shadow(0 0 3px rgba(0, 230, 118, 0.55));
	stroke-dasharray: 100;
	stroke-dashoffset: 100;
	animation: tkSparkDraw 2.2s cubic-bezier(0.65, 0, 0.35, 1) 0.3s forwards,
		tkSparkGlow 3.6s ease-in-out 2.7s infinite;
}
.tk-dash__chart .tk-spark path.area {
	opacity: 0;
	animation: tkSparkArea 1.8s ease-out 0.4s forwards;
}
.tk-dash__chart:has(.tk-spark)::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(
		105deg,
		transparent 40%,
		rgba(0, 230, 118, 0.14) 49%,
		rgba(0, 230, 118, 0.22) 50%,
		rgba(0, 230, 118, 0.14) 51%,
		transparent 60%
	);
	background-size: 240% 100%;
	background-position: 150% 0;
	animation: tkSparkSweep 5s linear 3s infinite;
}
@keyframes tkSparkDraw { to { stroke-dashoffset: 0; } }
@keyframes tkSparkArea { to { opacity: 0.5; } }
@keyframes tkSparkGlow {
	0%, 100% { filter: drop-shadow(0 0 2px rgba(0, 230, 118, 0.4)); }
	50% { filter: drop-shadow(0 0 7px rgba(0, 230, 118, 0.9)); }
}
@keyframes tkSparkSweep {
	0% { background-position: 150% 0; }
	55%, 100% { background-position: -70% 0; }
}
@media (prefers-reduced-motion: reduce) {
	.tk-dash__chart .tk-spark path.line { animation: none; stroke-dashoffset: 0; filter: drop-shadow(0 0 3px rgba(0, 230, 118, 0.5)); }
	.tk-dash__chart .tk-spark path.area { animation: none; opacity: 0.5; }
	.tk-dash__chart:has(.tk-spark)::after { display: none; }
}

.tk-dash__cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0.65rem; }
.tk-donut-wrap { display: flex; align-items: center; gap: 0.85rem; }
.tk-donut { width: 92px; height: 92px; flex-shrink: 0; }
.tk-legend { display: grid; gap: 0.4rem; font-size: 0.75rem; }
.tk-legend li { display: flex; align-items: center; gap: 0.45rem; color: var(--tk-text-2); }
.tk-legend i { width: 9px; height: 9px; border-radius: 3px; display: block; }
.tk-list-rows { display: grid; gap: 0.45rem; }
.tk-list-rows li { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--tk-text-2); }
.tk-list-rows b { color: var(--tk-text); font-weight: 600; }

/* Floating badge near dashboard */
.tk-dash__float {
	position: absolute; top: 1.1rem; right: 0.6rem; z-index: 3;
	background: var(--tk-light-card); color: var(--tk-light-text); border-radius: 12px; padding: 0.6rem 0.8rem;
	display: flex; align-items: center; gap: 0.55rem; box-shadow: 0 16px 30px -12px rgba(0,0,0,0.6); font-size: 0.8rem; font-weight: 600;
}
.tk-dash__float .tk-ico { width: 28px; height: 28px; border-radius: 8px; background: var(--tk-green); color: #04140b; display: grid; place-items: center; }
.tk-dash__float small { display: block; color: #71717a; font-weight: 500; font-size: 0.7rem; }

/* ==========================================================================
   Logo marquee / trust bar
   ========================================================================== */
.tk-trust { border-block: 1px solid var(--tk-border-soft); padding-block: 2.25rem; }
.tk-trust__label { text-align: center; font-size: 0.8125rem; color: var(--tk-muted); margin-bottom: 1.5rem; letter-spacing: 0.04em; }
.tk-logos { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: clamp(1.5rem, 5vw, 3.5rem); }
.tk-logos span { font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em; color: #8b8b92; opacity: 0.85; transition: color 0.2s, opacity 0.2s; white-space: nowrap; }
.tk-logos span:hover { color: var(--tk-text); opacity: 1; }
.tk-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.tk-marquee__track { display: flex; gap: 3.5rem; width: max-content; animation: tk-marquee 32s linear infinite; }
@keyframes tk-marquee { to { transform: translateX(-50%); } }
.tk-marquee:hover .tk-marquee__track { animation-play-state: paused; }

/* ==========================================================================
   Feature grid
   ========================================================================== */
.tk-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tk-feature {
	background: var(--tk-card); border: 1px solid var(--tk-border); border-radius: var(--tk-radius); padding: 1.6rem;
	transition: transform 0.25s var(--tk-ease), border-color 0.25s var(--tk-ease), background 0.25s var(--tk-ease);
	position: relative; overflow: hidden;
}
.tk-feature::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 200px at 50% -40%, rgba(0,230,118,0.10), transparent 70%); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.tk-feature:hover { transform: translateY(-4px); border-color: #36363b; }
.tk-feature:hover::before { opacity: 1; }
.tk-feature__ico { width: 46px; height: 46px; border-radius: 12px; background: var(--tk-green-soft); border: 1px solid var(--tk-green-line); color: var(--tk-green); display: grid; place-items: center; margin-bottom: 1.1rem; }
.tk-feature__ico svg { width: 22px; height: 22px; }
.tk-feature h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.tk-feature p { font-size: 0.9375rem; }
.tk-feature--wide { grid-column: span 2; }
/* "Read more" cards: collapse longer copy so cards stay even; + reveals the rest. */
.tk-feature__more p + p { margin-top: 0.6rem; }
.tk-feature.has-more:not(.is-open) .tk-feature__more {
	max-height: 3.6em;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(180deg, #000 48%, transparent);
	mask-image: linear-gradient(180deg, #000 48%, transparent);
}
.tk-readmore { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 0.65rem; padding: 0; background: none; border: 0; color: var(--tk-green); font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.tk-readmore::before { content: "+"; display: inline-grid; place-items: center; width: 17px; height: 17px; border: 1px solid currentColor; border-radius: 50%; font-size: 0.9em; line-height: 1; }
.tk-feature.is-open .tk-readmore::before { content: "\2212"; }
.tk-readmore:hover { color: var(--tk-green-bright); }

/* ==========================================================================
   Steps (how it works)
   ========================================================================== */
.tk-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; position: relative; }
.tk-steps::before { content: ""; position: absolute; top: 26px; left: 16%; right: 16%; height: 2px; background-image: linear-gradient(90deg, var(--tk-border) 0 8px, transparent 8px 16px); background-size: 16px 2px; }
.tk-step { position: relative; text-align: center; display: flex; flex-direction: column; }
.tk-step__num { width: 52px; height: 52px; margin: 0 auto 1.1rem; border-radius: 50%; background: var(--tk-elevated); border: 1px solid var(--tk-green-line); color: var(--tk-green); display: grid; place-items: center; font-weight: 700; font-size: 1.05rem; position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--tk-bg); }
.tk-step h3 { font-size: 1.0625rem; margin-bottom: 0.45rem; }
.tk-step p { font-size: 0.9rem; max-width: 30ch; margin-inline: auto; margin-bottom: 1.1rem; }
/* Visual pinned to the bottom of each (equal-height) step so all three line up; fixed height keeps them identical. */
.tk-step__media { margin-top: auto; background: var(--tk-card); border: 1px solid var(--tk-border); border-radius: 14px; padding: 0.9rem; display: flex; align-items: center; justify-content: center; gap: 0.6rem; height: 72px; box-sizing: border-box; overflow: hidden; }
/* Keep the sparkline (step 3) within the fixed-height media box. */
.tk-step__media .tk-spark { width: auto; height: 40px; flex: 0 1 auto; }
.tk-pf { width: 30px; height: 30px; border-radius: 8px; background: var(--tk-elevated); border: 1px solid var(--tk-border); display: grid; place-items: center; font-size: 0.7rem; font-weight: 700; color: var(--tk-text-2); }

/* ==========================================================================
   Stats band
   ========================================================================== */
.tk-statband { background: var(--tk-card); border: 1px solid var(--tk-border); border-radius: var(--tk-radius-lg); overflow: hidden; position: relative; }
.tk-statband__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.tk-statband__cell { padding: clamp(1.5rem, 3vw, 2.5rem); border-right: 1px solid var(--tk-border-soft); }
.tk-statband__cell:last-child { border-right: none; }
.tk-statband__num { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; background: var(--tk-gradient-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tk-statband__num.is-down { background: linear-gradient(120deg,#f87171,#fca5a5); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tk-statband__label { font-weight: 600; margin-top: 0.35rem; }
.tk-statband__sub { font-size: 0.8125rem; color: var(--tk-muted); margin-top: 0.15rem; }

/* ==========================================================================
   Integrations
   ========================================================================== */
.tk-int-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.85rem; }
.tk-int {
	display: flex; flex-direction: column; gap: 0.55rem; padding: 1.1rem; border-radius: 14px;
	background: var(--tk-card); border: 1px solid var(--tk-border); transition: transform 0.2s var(--tk-ease), border-color 0.2s;
}
.tk-int:hover { transform: translateY(-3px); border-color: #36363b; }
.tk-int__logo { width: 40px; height: 40px; border-radius: 10px; background: var(--tk-elevated); border: 1px solid var(--tk-border-soft); display: grid; place-items: center; color: var(--tk-text); font-weight: 700; }
.tk-int__logo svg { width: 22px; height: 22px; }
.tk-int__logo.is-wordmark { width: auto; min-width: 40px; padding: 0 0.6rem; background: var(--tk-elevated); }
.tk-int__logo.is-wordmark img { height: 15px; width: auto; }
.tk-int--lg .tk-int__logo.is-wordmark { padding: 0 1rem; }
.tk-int--lg .tk-int__logo.is-wordmark img { height: 22px; }
.tk-int__name { font-weight: 600; font-size: 0.9375rem; }
.tk-int__type { font-size: 0.78rem; color: var(--tk-muted); }
.tk-int-cat { margin-bottom: 2.5rem; }
.tk-int-cat__head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--tk-muted); }
.tk-int-cat__head::after { content: ""; flex: 1; height: 1px; background: var(--tk-border-soft); }
.tk-int-cat__tag { text-transform: none; letter-spacing: 0; font-size: 0.7rem; font-weight: 700; color: var(--tk-green); background: var(--tk-green-soft); border: 1px solid var(--tk-green-line); padding: 0.15rem 0.55rem; border-radius: var(--tk-radius-pill); }
/* Core platforms: larger, prominent tiles */
.tk-int-grid--lg { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.tk-int--lg { flex-direction: row; align-items: center; gap: 1.25rem; padding: 1.6rem 1.75rem; background: linear-gradient(180deg, rgba(0,230,118,0.045), var(--tk-card) 60%); }
.tk-int--lg .tk-int__logo { width: 72px; height: 72px; border-radius: 18px; }
.tk-int--lg .tk-int__name { font-size: 1.2rem; }
.tk-int--lg .tk-int__type { font-size: 0.9rem; }
@media (max-width: 640px) { .tk-int-grid--lg { grid-template-columns: 1fr; } }

/* Inline platform pills (hero/steps) */
.tk-platforms { display: inline-flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.tk-platform { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.8rem; border-radius: 10px; background: var(--tk-card); border: 1px solid var(--tk-border); font-size: 0.8rem; font-weight: 600; }
.tk-platform svg, .tk-platform img { width: 18px; height: 18px; }

/* ==========================================================================
   Comparison table
   ========================================================================== */
.tk-compare { background: var(--tk-card); border: 1px solid var(--tk-border); border-radius: var(--tk-radius-lg); overflow: hidden; }
.tk-compare table { width: 100%; border-collapse: collapse; }
.tk-compare th, .tk-compare td { padding: 1rem 1.25rem; text-align: center; border-bottom: 1px solid var(--tk-border-soft); font-size: 0.9rem; }
.tk-compare thead th { font-weight: 700; font-size: 0.95rem; background: rgba(255,255,255,0.015); }
.tk-compare tbody tr:last-child td { border-bottom: none; }
.tk-compare th:first-child, .tk-compare td:first-child { text-align: left; color: var(--tk-text-2); font-weight: 500; }
.tk-compare .is-highlight { background: var(--tk-green-soft); position: relative; }
.tk-compare thead .is-highlight { color: var(--tk-green); }
.tk-yes { color: var(--tk-green); display: inline-grid; place-items: center; }
.tk-yes svg { width: 18px; height: 18px; }
.tk-no { color: #52525b; }
.tk-mini { font-size: 0.78rem; color: var(--tk-muted); }

/* "Why choose" 3-way compare (Trackity vs other vs browser) */
.tk-vs { width: 100%; border-collapse: collapse; background: var(--tk-card); border: 1px solid var(--tk-border); border-radius: var(--tk-radius); overflow: hidden; }
.tk-vs th, .tk-vs td { padding: 0.85rem 1rem; font-size: 0.875rem; border-bottom: 1px solid var(--tk-border-soft); text-align: center; }
.tk-vs th:first-child, .tk-vs td:first-child { text-align: left; }
.tk-vs col.tk-vs-hi, .tk-vs .tk-vs-hi { background: var(--tk-green-soft); }

/* ==========================================================================
   Pricing
   ========================================================================== */
.tk-pricing-toggle { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.3rem; border-radius: var(--tk-radius-pill); background: var(--tk-card); border: 1px solid var(--tk-border); }
.tk-pricing-toggle button { padding: 0.55rem 1.1rem; border-radius: var(--tk-radius-pill); font-weight: 600; font-size: 0.875rem; color: var(--tk-text-2); transition: background 0.2s, color 0.2s; }
.tk-pricing-toggle button.is-active { background: var(--tk-green); color: #04140b; }
.tk-pricing-toggle .tk-save { font-size: 0.72rem; color: var(--tk-green); margin-left: 0.3rem; font-weight: 700; }
.tk-pricing-toggle button.is-active .tk-save { color: #04140b; }
/* Manual currency switch (small, beside the billing toggle) */
.tk-cur-toggle { display: inline-flex; align-items: center; gap: 0.15rem; padding: 0.25rem; border-radius: var(--tk-radius-pill); background: var(--tk-card); border: 1px solid var(--tk-border); }
.tk-cur-toggle button { width: 30px; height: 30px; border-radius: 50%; font-weight: 700; font-size: 0.9rem; color: var(--tk-text-2); transition: background 0.2s, color 0.2s; }
.tk-cur-toggle button.is-active { background: var(--tk-green); color: #04140b; }
.tk-cur-toggle button:hover:not(.is-active) { color: var(--tk-text); }
.tk-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: stretch; }
.tk-plans--3 { grid-template-columns: repeat(3, 1fr); }
.tk-plan { background: var(--tk-card); border: 1px solid var(--tk-border); border-radius: var(--tk-radius-lg); padding: 1.6rem; display: flex; flex-direction: column; position: relative; transition: transform 0.25s var(--tk-ease), border-color 0.25s; }
.tk-plan:hover { transform: translateY(-4px); border-color: #36363b; }
.tk-plan.is-featured { border-color: var(--tk-green-line); box-shadow: var(--tk-glow-sm); background: linear-gradient(180deg, rgba(0,230,118,0.05), var(--tk-card) 40%); }
.tk-plan__badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); }
.tk-plan__name { font-weight: 700; font-size: 1.0625rem; }
.tk-plan__desc { font-size: 0.85rem; color: var(--tk-muted); margin-top: 0.25rem; min-height: 2.4em; }
.tk-plan__price { margin: 1.1rem 0 0.25rem; display: flex; align-items: baseline; gap: 0.3rem; }
.tk-plan__amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; }
.tk-plan__was { font-size: 1.35rem; color: var(--tk-muted); text-decoration: line-through; text-decoration-thickness: 2px; margin-right: 0.45rem; font-weight: 600; vertical-align: 0.18em; }
.tk-plan__per { font-size: 0.85rem; color: var(--tk-muted); }
.tk-plan__annual { font-size: 0.8rem; color: var(--tk-muted); min-height: 1.2em; }
.tk-plan__cta { margin: 1.25rem 0; }
.tk-plan__orders { font-size: 0.85rem; color: var(--tk-text-2); padding: 0.6rem 0; border-block: 1px solid var(--tk-border-soft); margin-bottom: 1rem; }
.tk-plan__orders b { color: var(--tk-text); }
.tk-plan__feats { display: grid; gap: 0.6rem; font-size: 0.875rem; }
.tk-plan__feats li { display: flex; gap: 0.55rem; color: var(--tk-text-2); }
.tk-plan__feats svg { flex-shrink: 0; width: 16px; height: 16px; color: var(--tk-green); margin-top: 0.15rem; }
.tk-price-amt[data-annual] { display: none; }
body.is-annual .tk-price-amt[data-monthly] { display: none; }
body.is-annual .tk-price-amt[data-annual] { display: inline; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.tk-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tk-quote { background: var(--tk-card); border: 1px solid var(--tk-border); border-radius: var(--tk-radius); padding: 1.5rem; display: flex; flex-direction: column; }
.tk-quote__stars { color: var(--tk-green); display: flex; gap: 0.1rem; margin-bottom: 0.85rem; }
.tk-quote__stars svg { width: 16px; height: 16px; }
.tk-quote__text { color: var(--tk-text); font-size: 0.95rem; line-height: 1.6; flex: 1; }
.tk-quote__by { display: flex; align-items: center; gap: 0.7rem; margin-top: 1.25rem; }
.tk-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--tk-elevated); border: 1px solid var(--tk-border); display: grid; place-items: center; font-weight: 700; color: var(--tk-green); flex-shrink: 0; overflow: hidden; }
.tk-avatar--img { display: block; object-fit: cover; }
.tk-quote__name { font-weight: 600; font-size: 0.9rem; }
.tk-quote__role { font-size: 0.78rem; color: var(--tk-muted); }

/* Live event feed */
.tk-feed { background: var(--tk-card); border: 1px solid var(--tk-border); border-radius: var(--tk-radius); padding: 1.25rem; }
.tk-feed__row { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0; border-bottom: 1px solid var(--tk-border-soft); font-size: 0.875rem; }
.tk-feed__row:last-child { border-bottom: none; }
.tk-feed__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tk-green); box-shadow: var(--tk-glow-sm); flex-shrink: 0; }
.tk-feed__amt { margin-left: auto; font-weight: 700; }
.tk-feed__time { color: var(--tk-muted); font-size: 0.78rem; min-width: 64px; text-align: right; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.tk-faq { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem 1.25rem; align-items: start; }
.tk-faq--single { grid-template-columns: 1fr; max-width: 760px; margin-inline: auto; }
.tk-faq__item { background: var(--tk-card); border: 1px solid var(--tk-border); border-radius: 12px; overflow: hidden; }
.tk-faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; font-weight: 600; font-size: 0.95rem; text-align: left; }
.tk-faq__q .tk-faq__icon { flex-shrink: 0; width: 20px; height: 20px; position: relative; }
.tk-faq__icon::before, .tk-faq__icon::after { content: ""; position: absolute; background: var(--tk-green); border-radius: 2px; transition: transform 0.25s var(--tk-ease); }
.tk-faq__icon::before { top: 9px; left: 2px; width: 16px; height: 2px; }
.tk-faq__icon::after { top: 2px; left: 9px; width: 2px; height: 16px; }
.tk-faq__item.is-open .tk-faq__icon::after { transform: scaleY(0); }
.tk-faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s var(--tk-ease); }
.tk-faq__item.is-open .tk-faq__a { grid-template-rows: 1fr; }
.tk-faq__a > div { overflow: hidden; }
.tk-faq__a p { padding: 0 1.25rem 1.2rem; font-size: 0.9rem; }

/* ==========================================================================
   CTA section
   ========================================================================== */
.tk-cta {
	position: relative; overflow: hidden; border-radius: var(--tk-radius-lg);
	background: radial-gradient(120% 140% at 100% 0%, rgba(0,230,118,0.18), transparent 55%), var(--tk-elevated);
	border: 1px solid var(--tk-border); padding: clamp(2.25rem, 5vw, 3.5rem);
}
.tk-cta__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; }
.tk-cta h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.tk-cta__green { color: var(--tk-green); }
.tk-cta__list { display: grid; gap: 0.6rem; }
.tk-cta__list li { display: flex; align-items: center; gap: 0.55rem; font-size: 0.9rem; }
.tk-cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 1.5rem; }
.tk-rating { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: var(--tk-text-2); }
.tk-rating .tk-stars { color: var(--tk-green); display: inline-flex; }
.tk-rating .tk-stars svg { width: 14px; height: 14px; }

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */
.tk-pagehero { position: relative; padding-top: clamp(3rem, 5vw, 4.5rem); padding-bottom: clamp(2rem, 4vw, 3rem); text-align: center; overflow: hidden; }
.tk-pagehero .tk-eyebrow { margin-bottom: 1rem; }
.tk-pagehero p { max-width: 56ch; margin: 1.1rem auto 0; font-size: 1.0625rem; }
.tk-pagehero__cta { margin-top: 1.75rem; display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
/* Inline so the trail follows the hero's text-align (left on posts, centered on
   archives) instead of being force-centered. */
.tk-breadcrumbs { font-size: 0.8rem; line-height: 1.7; margin-bottom: 1.1rem; color: var(--tk-muted); }
.tk-breadcrumbs a { color: var(--tk-text-2); text-decoration: none; }
.tk-breadcrumbs a:hover { color: var(--tk-green); }
.tk-breadcrumbs > span[aria-hidden] { margin: 0 0.45rem; color: var(--tk-muted); }
.tk-breadcrumbs > span:not([aria-hidden]) { color: var(--tk-text); }

/* ==========================================================================
   Blog / Resources / Single
   ========================================================================== */
.tk-postgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 360px)); gap: 1.25rem; justify-content: center; }
.tk-postcard { background: var(--tk-card); border: 1px solid var(--tk-border); border-radius: var(--tk-radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.25s var(--tk-ease), border-color 0.25s; }
.tk-postcard:hover { transform: translateY(-4px); border-color: #36363b; }
.tk-postcard__thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, #0f1f16, #0a0a0b); position: relative; overflow: hidden; }
.tk-postcard__thumb img { width: 100%; height: 100%; object-fit: cover; }
.tk-postcard__cat { position: absolute; top: 0.85rem; left: 0.85rem; }
.tk-postcard__body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.tk-postcard__body .tk-postcard__title { font-size: 1.0625rem; line-height: 1.3; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.tk-postcard__body p { font-size: 0.875rem; flex: 1; }
.tk-postcard__meta { display: flex; align-items: center; gap: 0.6rem; margin-top: 1rem; font-size: 0.78rem; color: var(--tk-muted); }

.tk-tag { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tk-green); }

.tk-single { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.tk-prose { max-width: 720px; }
.tk-prose > * + * { margin-top: 1.25rem; }
.tk-prose h2 { font-size: 1.65rem; margin-top: 2.5rem; }
.tk-prose h3 { font-size: 1.3rem; margin-top: 2rem; }
.tk-prose p, .tk-prose li { color: var(--tk-text-2); font-size: 1.0625rem; line-height: 1.75; }
.tk-prose ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: 0.5rem; }
.tk-prose a { color: var(--tk-green); text-decoration: underline; text-underline-offset: 3px; }
.tk-prose img { border-radius: 14px; border: 1px solid var(--tk-border); }
.tk-prose blockquote { border-left: 3px solid var(--tk-green); padding-left: 1.25rem; color: var(--tk-text); font-size: 1.15rem; }
.tk-prose code { background: var(--tk-elevated); padding: 0.15em 0.4em; border-radius: 6px; font-size: 0.9em; border: 1px solid var(--tk-border-soft); }

/* ---- About: editorial story ---- */
.tk-story { max-width: 720px; margin-inline: auto; }
.tk-story__eyebrow { display: block; text-align: center; margin-bottom: 0.6rem; }
.tk-story h2 { margin-bottom: 1.6rem; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.tk-story p { color: var(--tk-text-2); font-size: 1.0625rem; line-height: 1.78; margin: 0 0 1.2rem; }
.tk-story a { color: var(--tk-green); text-decoration: underline; text-underline-offset: 3px; }
.tk-story__lead { font-size: clamp(1.2rem, 2vw, 1.4rem) !important; line-height: 1.55 !important; color: var(--tk-text) !important; margin-bottom: 1.6rem !important; }
.tk-story__kicker { color: var(--tk-text) !important; font-weight: 600; font-size: 1.12rem !important; }
.tk-pullquote {
	margin: 2rem 0;
	padding: 0.2rem 0 0.2rem 1.5rem;
	border-left: 3px solid var(--tk-green);
	font-size: clamp(1.4rem, 2.6vw, 1.7rem);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.015em;
	color: var(--tk-text);
}
.tk-story__sign { display: flex; align-items: center; gap: 0.9rem; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--tk-border-soft); }
.tk-story__sign-mark { width: 46px; height: 46px; border-radius: 50%; background: var(--tk-green-soft); border: 1px solid var(--tk-green-line); color: var(--tk-green); display: grid; place-items: center; flex-shrink: 0; }
.tk-story__sign-photo { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--tk-green-line); box-shadow: var(--tk-glow-sm); }
.tk-story__sign strong { display: block; color: var(--tk-text); font-size: 0.95rem; }
.tk-story__sign span { color: var(--tk-muted); font-size: 0.85rem; }

/* ---- Author entity page ---- */
.tk-authorhero { display: flex; gap: 1.85rem; align-items: flex-start; text-align: left; max-width: 880px; margin: 1.25rem auto 0; position: relative; overflow: hidden; background: var(--tk-card); border: 1px solid var(--tk-border); border-radius: var(--tk-radius-lg); padding: 2rem 2.1rem; box-shadow: var(--tk-shadow-card); }
.tk-authorhero__links { justify-content: flex-start; }
.tk-authorhero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--tk-green), transparent 70%); }
.tk-authorhero__photo { width: 116px; height: 116px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--tk-green-line); box-shadow: var(--tk-glow-sm); }
.tk-authorhero__main { min-width: 0; }
.tk-authorhero__main h1 { margin: 0.3rem 0 0; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.tk-authorhero__role { color: var(--tk-green); font-weight: 600; margin-top: 0.4rem; }
.tk-authorhero__bio { color: var(--tk-text-2); margin-top: 0.95rem; max-width: 62ch; font-size: 1.0625rem; line-height: 1.7; }
.tk-authorhero__tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.1rem; }
.tk-authorhero__tag { font-size: 0.8rem; font-weight: 600; color: var(--tk-green); background: var(--tk-green-soft); border: 1px solid var(--tk-green-line); border-radius: 999px; padding: 0.32rem 0.72rem; }
.tk-authorhero__links { display: flex; gap: 0.55rem; margin-top: 1.15rem; }
.tk-authorhero__links a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--tk-border); background: rgba(255,255,255,0.03); display: grid; place-items: center; color: var(--tk-text-2); transition: color 0.2s var(--tk-ease), border-color 0.2s var(--tk-ease); }
.tk-authorhero__links a:hover { color: var(--tk-green); border-color: var(--tk-green-line); }
.tk-byline__author { color: var(--tk-text); }
.tk-byline__author:hover { color: var(--tk-green); }
/* Author page article list (aligned with the profile card column). */
.tk-authorposts-wrap { max-width: 880px; margin-inline: auto; }
.tk-authorposts-title { font-size: 1.4rem; margin: 0 0 1.25rem; }
.tk-authorposts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.tk-authorpost { display: grid; grid-template-columns: 172px 1fr; gap: 1.3rem; align-items: center; background: var(--tk-card); border: 1px solid var(--tk-border-soft); border-radius: var(--tk-radius); padding: 0.9rem; transition: border-color 0.2s var(--tk-ease), transform 0.2s var(--tk-ease); }
.tk-authorpost:hover { border-color: var(--tk-green-line); transform: translateY(-2px); }
.tk-authorpost__thumb { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--tk-elevated); border: 1px solid var(--tk-border-soft); }
.tk-authorpost__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tk-authorpost__body { min-width: 0; }
.tk-authorpost__cat { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tk-green); }
.tk-authorpost h3 { font-size: 1.15rem; line-height: 1.3; margin: 0.35rem 0 0.4rem; }
.tk-authorpost h3 a { color: var(--tk-text); }
.tk-authorpost h3 a:hover { color: var(--tk-green); }
.tk-authorpost__body p { color: var(--tk-text-2); font-size: 0.92rem; line-height: 1.6; margin: 0 0 0.5rem; }
.tk-authorpost__meta { color: var(--tk-muted); font-size: 0.8rem; }
.tk-authorposts-pager { margin-top: 1.5rem; display: flex; justify-content: center; }
@media (max-width: 560px) { .tk-authorpost { grid-template-columns: 1fr; } }
/* Auto table of contents (single posts). */
.tk-toc { background: var(--tk-elevated); border: 1px solid var(--tk-border-soft); border-radius: var(--tk-radius); padding: 1.1rem 1.4rem; margin: 1.75rem 0 2.25rem; }
.tk-toc__title { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--tk-muted); margin-bottom: 0.7rem; }
.tk-toc .tk-toc__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; counter-reset: tocnum; }
.tk-toc .tk-toc__list li { counter-increment: tocnum; margin: 0; }
.tk-toc a { text-decoration: none; color: var(--tk-text-2); font-size: 0.95rem; line-height: 1.45; }
.tk-toc a::before { content: counter(tocnum) "."; color: var(--tk-green); font-weight: 700; margin-right: 0.5rem; }
.tk-toc a:hover { color: var(--tk-green); }
.tk-toc .tk-toc__sub { margin-left: 1.3rem; }
.tk-toc .tk-toc__sub a::before { content: ""; }
/* Two columns on wider screens to save vertical space. */
@media (min-width: 640px) {
	.tk-toc--cols .tk-toc__list { grid-template-columns: 1fr 1fr; gap: 0.6rem 2.5rem; }
}

/* Author bio box under single posts. */
.tk-authorbox { position: relative; overflow: hidden; display: flex; gap: 1.3rem; align-items: flex-start; margin-top: 3rem; padding: 1.85rem; border: 1px solid var(--tk-border-soft); border-radius: var(--tk-radius-lg); background: radial-gradient(120% 150% at 0% 0%, rgba(0, 230, 118, 0.09), transparent 55%), var(--tk-card); box-shadow: var(--tk-shadow-card); }
.tk-authorbox::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--tk-green), transparent 70%); }
.tk-authorbox .tk-authorbox__photo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--tk-green-line); box-shadow: var(--tk-glow-sm); margin: 0; }
.tk-authorbox__body { min-width: 0; }
.tk-authorbox__eyebrow { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--tk-muted); }
.tk-authorbox__name { display: block; font-size: 1.25rem; margin-top: 0.2rem; letter-spacing: -0.01em; }
.tk-authorbox a { text-decoration: none; }
.tk-authorbox__name a { color: var(--tk-text); }
.tk-authorbox__name a:hover { color: var(--tk-green); }
.tk-authorbox__role { color: var(--tk-green); font-weight: 600; font-size: 0.9rem; }
.tk-authorbox p { color: var(--tk-text-2); font-size: 0.95rem; line-height: 1.7; margin: 0.7rem 0 0; max-width: 62ch; }
.tk-authorbox__more { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.05rem; padding: 0.5rem 0.95rem; border-radius: 999px; border: 1px solid var(--tk-green-line); background: var(--tk-green-soft); color: var(--tk-green); font-weight: 600; font-size: 0.85rem; }
.tk-authorbox__more:hover { background: rgba(0, 230, 118, 0.16); color: var(--tk-green-bright); }
@media (max-width: 560px) { .tk-authorbox { flex-direction: column; gap: 1rem; padding: 1.5rem; } }
@media (max-width: 640px) { .tk-authorhero { flex-direction: column; gap: 1.1rem; padding: 1.5rem 1.25rem; } }
.tk-prose pre { background: var(--tk-card); border: 1px solid var(--tk-border); border-radius: 12px; padding: 1.25rem; overflow-x: auto; }
.tk-prose pre code { background: none; border: none; padding: 0; }
.tk-sidebar { position: sticky; top: calc(var(--tk-header-h) + 1.5rem); display: grid; gap: 1.25rem; }
.tk-widget { background: var(--tk-card); border: 1px solid var(--tk-border); border-radius: var(--tk-radius); padding: 1.4rem; }
.tk-widget h3 { font-size: 1rem; margin-bottom: 0.85rem; }
.tk-article-head { text-align: left; max-width: 760px; }
.tk-article-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 1rem 0; }
.tk-byline { display: flex; align-items: center; gap: 0.7rem; margin-top: 1.25rem; font-size: 0.85rem; color: var(--tk-text-2); }
.tk-byline .tk-avatar { width: 56px; height: 56px; font-size: 1.25rem; }
.tk-byline .tk-dot { color: var(--tk-muted); }

/* ==========================================================================
   Forms
   ========================================================================== */
.tk-field { display: grid; gap: 0.4rem; }
.tk-field label { font-size: 0.85rem; font-weight: 600; }
.tk-input, .tk-textarea, .tk-select {
	width: 100%; background: var(--tk-bg-soft); border: 1px solid var(--tk-border); border-radius: 10px;
	padding: 0.8rem 0.95rem; font-size: 0.9375rem; color: var(--tk-text); transition: border-color 0.2s, box-shadow 0.2s;
}
.tk-input::placeholder, .tk-textarea::placeholder { color: var(--tk-muted); }
.tk-input:focus, .tk-textarea:focus, .tk-select:focus { outline: none; border-color: var(--tk-green); box-shadow: 0 0 0 3px var(--tk-green-soft); }
.tk-textarea { min-height: 140px; resize: vertical; }
.tk-form { display: grid; gap: 1rem; }
.tk-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.tk-newsletter { display: flex; gap: 0.5rem; }
.tk-newsletter .tk-input { flex: 1; }

/* Inline notices (form feedback) */
.tk-notice { display: flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.1rem; border-radius: 10px; font-size: 0.9rem; font-weight: 600; margin-bottom: 1.25rem; }
.tk-notice--ok { background: var(--tk-green-soft); border: 1px solid var(--tk-green-line); color: var(--tk-green); }
.tk-notice--err { background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.35); color: #fca5a5; }

/* Search form */
.tk-search { display: flex; gap: 0.5rem; max-width: 480px; }
.tk-search .tk-input { background: rgba(255,255,255,0.04); }

/* ==========================================================================
   Contact info / help cards
   ========================================================================== */
.tk-icards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.tk-icard { background: var(--tk-card); border: 1px solid var(--tk-border); border-radius: var(--tk-radius); padding: 1.5rem; transition: transform 0.2s, border-color 0.2s; }
.tk-icard:hover { transform: translateY(-3px); border-color: #36363b; }
.tk-icard__ico { width: 44px; height: 44px; border-radius: 11px; background: var(--tk-green-soft); border: 1px solid var(--tk-green-line); color: var(--tk-green); display: grid; place-items: center; margin-bottom: 1rem; }
.tk-icard h3 { font-size: 1.0625rem; margin-bottom: 0.4rem; }
.tk-icard p { font-size: 0.9rem; }

/* ==========================================================================
   Changelog
   ========================================================================== */
.tk-changelog { max-width: 820px; margin-inline: auto; display: grid; gap: 2.5rem; }
.tk-release { display: grid; grid-template-columns: 160px 1fr; gap: 2rem; }
.tk-release__date { font-size: 0.85rem; color: var(--tk-muted); position: sticky; top: calc(var(--tk-header-h) + 1.5rem); }
.tk-release__date .tk-ver { display: inline-block; margin-top: 0.4rem; padding: 0.2rem 0.6rem; border-radius: 6px; background: var(--tk-green-soft); color: var(--tk-green); font-weight: 700; border: 1px solid var(--tk-green-line); }
.tk-release__body { border-left: 1px solid var(--tk-border); padding-left: 2rem; position: relative; }
.tk-release__body::before { content: ""; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--tk-green); box-shadow: var(--tk-glow-sm); }
.tk-release__body h2 { font-size: 1.3rem; margin-bottom: 0.85rem; }
.tk-release__body ul { display: grid; gap: 0.6rem; }
.tk-release__body li { display: flex; gap: 0.6rem; color: var(--tk-text-2); font-size: 0.95rem; }
.tk-tagchip { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; padding: 0.15rem 0.45rem; border-radius: 5px; height: fit-content; margin-top: 0.15rem; flex-shrink: 0; }
.tk-tagchip.new { background: rgba(0,230,118,0.14); color: var(--tk-green); }
.tk-tagchip.improved { background: rgba(96,165,250,0.14); color: #93c5fd; }
.tk-tagchip.fixed { background: rgba(251,191,36,0.14); color: #fcd34d; }

/* ==========================================================================
   Footer
   ========================================================================== */
.tk-footer { position: relative; border-top: 1px solid var(--tk-border-soft); padding-top: clamp(3rem, 5vw, 4.5rem); padding-bottom: 2rem; margin-top: 0; background: linear-gradient(180deg, rgba(0, 230, 118, 0.022), transparent 220px), var(--tk-bg); }
.tk-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr) 1.4fr; gap: 2rem; }
.tk-footer__brand p { font-size: 0.875rem; margin-top: 1rem; max-width: 30ch; }
.tk-footer__social { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.tk-footer__social a { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--tk-border); display: grid; place-items: center; color: var(--tk-text-2); transition: 0.2s; }
.tk-footer__social a:hover { color: var(--tk-green); border-color: var(--tk-green-line); }
.tk-footer__social svg { width: 17px; height: 17px; }
.tk-footer__col h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--tk-muted); margin-bottom: 1rem; font-weight: 600; }
.tk-footer__col ul { display: grid; gap: 0.7rem; }
.tk-footer__col a { font-size: 0.9rem; color: var(--tk-text-2); }
.tk-footer__col a:hover { color: var(--tk-text); }
.tk-footer__news h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--tk-muted); margin-bottom: 1rem; font-weight: 600; }
.tk-footer__news p { font-size: 0.875rem; margin-bottom: 1rem; }
.tk-footer__bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: clamp(2.5rem, 4vw, 3.5rem); padding-top: 1.75rem; border-top: 1px solid var(--tk-border-soft); font-size: 0.82rem; color: var(--tk-muted); }
.tk-footer__bottom nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.tk-footer__bottom a:hover { color: var(--tk-text); }

/* ==========================================================================
   404 / utility
   ========================================================================== */
.tk-404 { text-align: center; padding-block: clamp(4rem, 10vw, 8rem); }
.tk-404__code { font-size: clamp(5rem, 16vw, 11rem); font-weight: 800; line-height: 1; background: var(--tk-gradient-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ==========================================================================
   Light section variant (for blog content blocks etc.)
   ========================================================================== */
.tk-light-sec { background: var(--tk-light); color: var(--tk-light-text); }
.tk-light-sec h1, .tk-light-sec h2, .tk-light-sec h3 { color: var(--tk-light-text); }
.tk-light-sec p { color: var(--tk-light-text-2); }
.tk-light-sec .tk-card, .tk-light-sec .tk-feature { background: var(--tk-light-card); border-color: var(--tk-light-border); }

/* ==========================================================================
   Feature visuals (custom SVG illustrations)
   ========================================================================== */
.tk-visual { border-radius: var(--tk-radius-lg); overflow: hidden; box-shadow: var(--tk-shadow-card); }
.tk-vsvg { width: 100%; height: auto; display: block; }

/* ---- Animated diagram visuals (.tk-vsvg) -------------------------------- */
/* Continuous "data flowing" current along connector paths. */
.tk-vsvg .tk-flow { stroke-dasharray: 5 7; animation: tkVFlow 0.9s linear infinite; }
@keyframes tkVFlow { to { stroke-dashoffset: -12; } }

/* Client-side connector that keeps getting blocked. */
.tk-vsvg .tk-flow-blocked { animation: tkVBlocked 1.9s ease-in-out infinite; }
@keyframes tkVBlocked {
	0%   { stroke-dashoffset: 0;   opacity: 0.25; }
	40%  { stroke-dashoffset: -18; opacity: 0.8; }
	52%  { opacity: 0.1; }
	62%  { opacity: 0.5; }
	100% { stroke-dashoffset: -18; opacity: 0.25; }
}

/* Soft pulsing glow on hubs / key nodes. */
.tk-vsvg .tk-glow { animation: tkVGlow 2.6s ease-in-out infinite; }
@keyframes tkVGlow {
	0%, 100% { filter: drop-shadow(0 0 1px rgba(0, 230, 118, 0.45)); }
	50%      { filter: drop-shadow(0 0 5px rgba(0, 255, 136, 0.95)); }
}

/* Gentle scale pulse (nodes). */
.tk-vsvg .tk-pulse { transform-box: fill-box; transform-origin: center; animation: tkVPulse 2.4s ease-in-out infinite; }
@keyframes tkVPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.16); } }

/* Radar ping (anomaly ring). */
.tk-vsvg .tk-ping { transform-box: fill-box; transform-origin: center; animation: tkVPing 2s ease-out infinite; }
@keyframes tkVPing {
	0%       { transform: scale(0.45); opacity: 0.9; }
	80%,100% { transform: scale(1.8);  opacity: 0; }
}

/* Breathing venn circles. */
.tk-vsvg .tk-breathe { transform-box: fill-box; transform-origin: center; animation: tkVBreathe 4.2s ease-in-out infinite; }
@keyframes tkVBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* Travelling data packet (offset-path supplied per element). */
.tk-vsvg .tk-packet { animation: tkVPacket 2.4s ease-in-out infinite; }
@keyframes tkVPacket { 0% { offset-distance: 0%; opacity: 0; } 12%, 88% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }

/* Reveal-triggered (play once on scroll-in; the FINAL state is the base style
   so the diagram still looks correct if the observer never fires). */
.tk-reveal.is-in .tk-vsvg .tk-draw { stroke-dasharray: 100; animation: tkVDraw 1.6s ease-in-out forwards; }
@keyframes tkVDraw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

.tk-vsvg .tk-bar-rise { transform-box: fill-box; transform-origin: bottom; }
.tk-reveal.is-in .tk-vsvg .tk-bar-rise { animation: tkVBarRise 0.9s cubic-bezier(0.3, 1.2, 0.5, 1) both; }
@keyframes tkVBarRise { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.tk-vsvg .tk-bar-grow { transform-box: fill-box; transform-origin: left center; }
.tk-reveal.is-in .tk-vsvg .tk-bar-grow { animation: tkVBarGrow 1.1s cubic-bezier(0.3, 1, 0.4, 1) both; }
@keyframes tkVBarGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Journey end node that lights up. */
.tk-reveal.is-in .tk-vsvg .tk-light { animation: tkVLight 0.6s ease-out 1.5s both; }
@keyframes tkVLight { from { fill: #141416; stroke: #3a3a3f; } to { fill: #00e676; stroke: #00ff88; } }

@media (prefers-reduced-motion: reduce) {
	.tk-vsvg .tk-flow, .tk-vsvg .tk-flow-blocked, .tk-vsvg .tk-glow, .tk-vsvg .tk-pulse,
	.tk-vsvg .tk-ping, .tk-vsvg .tk-breathe,
	.tk-reveal.is-in .tk-vsvg .tk-draw, .tk-reveal.is-in .tk-vsvg .tk-bar-rise,
	.tk-reveal.is-in .tk-vsvg .tk-bar-grow, .tk-reveal.is-in .tk-vsvg .tk-light {
		animation: none !important;
	}
	.tk-vsvg .tk-flow { stroke-dasharray: none; }
	.tk-vsvg .tk-packet { display: none; }
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
/* Reveal only when JS is available — content is fully visible without JS (no-JS, SEO, robustness). */
.tk-js .tk-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--tk-ease), transform 0.6s var(--tk-ease); }
.tk-js .tk-reveal.is-in { opacity: 1; transform: none; }
.tk-reveal[data-delay="1"] { transition-delay: 0.07s; }
.tk-reveal[data-delay="2"] { transition-delay: 0.14s; }
.tk-reveal[data-delay="3"] { transition-delay: 0.21s; }
.tk-reveal[data-delay="4"] { transition-delay: 0.28s; }
.tk-reveal[data-delay="5"] { transition-delay: 0.35s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
	.tk-hero__grid { grid-template-columns: 1fr; }
	.tk-hero__copy { max-width: 640px; }
	.tk-hero__media { max-width: 640px; }
	.tk-features { grid-template-columns: repeat(2, 1fr); }
	.tk-plans { grid-template-columns: repeat(2, 1fr); }
	.tk-quotes { grid-template-columns: 1fr; }
	.tk-postgrid { grid-template-columns: repeat(2, 1fr); }
	.tk-single { grid-template-columns: 1fr !important; } /* beat inline 2-col (e.g. contact) so the sidebar stacks */
	.tk-sidebar { position: static; grid-template-columns: repeat(2, 1fr); }
	.tk-cta__grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
	.tk-nav, .tk-header__actions .tk-login, .tk-header__actions .tk-btn--ghost { display: none; }
	.tk-burger { display: grid; }
	.tk-statband__grid { grid-template-columns: repeat(2, 1fr); }
	.tk-statband__cell:nth-child(2) { border-right: none; }
	.tk-statband__cell { border-bottom: 1px solid var(--tk-border-soft); }
	.tk-steps { grid-template-columns: 1fr; gap: 2rem; }
	.tk-steps::before { display: none; }
	.tk-release { grid-template-columns: 1fr; gap: 0.75rem; }
	.tk-release__date { position: static; }
}
@media (max-width: 640px) {
	:root { --tk-header-h: 64px; }
	.tk-features, .tk-plans, .tk-postgrid, .tk-faq { grid-template-columns: 1fr; }
	.tk-stat-grid { grid-template-columns: repeat(2, 1fr); }
	.tk-footer__grid { grid-template-columns: 1fr; gap: 0; }
	/* Footer link columns become tap-to-expand accordions on phones. */
	.tk-footer__col.is-collapsible { border-bottom: 1px solid var(--tk-border-soft); }
	.tk-footer__col.is-collapsible h2 { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 0.95rem 0.1rem; cursor: pointer; }
	.tk-footer__col.is-collapsible h2::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--tk-muted); border-bottom: 2px solid var(--tk-muted); transform: rotate(45deg); transition: transform 0.25s var(--tk-ease); flex-shrink: 0; }
	.tk-footer__col.is-collapsible.is-open h2::after { transform: rotate(-135deg); }
	.tk-footer__col.is-collapsible ul { display: none; padding: 0 0 0.85rem 0.1rem; }
	.tk-footer__col.is-collapsible.is-open ul { display: block; }
	.tk-footer__brand { padding-bottom: 0.5rem; }
	.tk-footer__news { padding-top: 1.25rem; }
	.tk-form__row { grid-template-columns: 1fr; }
	.tk-sidebar { grid-template-columns: 1fr; }
	.tk-dash__cols { grid-template-columns: 1fr; }
	.tk-hero__cta .tk-btn { flex: 1; }
	.tk-footer__bottom { flex-direction: column; align-items: flex-start; }
	/* Compact hero on phones: drop the secondary paragraph and tighten spacing so
	   the 3 checks + the signup CTA land above the fold. */
	.tk-hero { padding-top: 1.5rem; padding-bottom: 2rem; }
	.tk-hero h1 { font-size: clamp(1.95rem, 8vw, 2.4rem); margin: 0.5rem 0 0.75rem; line-height: 1.12; }
	.tk-hero__sub { font-size: 1rem; }
	.tk-hero__sub + .tk-hero__sub { display: none; }
	.tk-hero__media { display: none; } /* hide the dashboard visual on phones */
	.tk-hero__checks { margin: 1rem 0; gap: 0.5rem; }
	.tk-hero__works { margin-top: 1rem; }
	.tk-hero__cta { margin-top: 1rem; }
}

/* ==========================================================================
   Mobile sliders (scroll-snap carousels with visible dots)
   ========================================================================== */
.tk-slider-dots { display: none; }
@media (max-width: 640px) {
	[data-slider] {
		display: flex !important;
		flex-wrap: nowrap;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		gap: 0.85rem;
		margin-inline: calc(var(--tk-gutter) * -1);
		padding: 0.5rem var(--tk-gutter) 0.25rem;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	[data-slider]::-webkit-scrollbar { display: none; }
	[data-slider] > * { flex: 0 0 86%; scroll-snap-align: center; }
	.tk-slider-dots { display: flex; }
}
.tk-slider-dots { justify-content: center; gap: 0.25rem; margin-top: 1.25rem; }
/* 24x24 tap target (a11y target-size) with a small centred visual dot. */
.tk-slider-dots button { width: 24px; height: 24px; padding: 0; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; }
.tk-slider-dots__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tk-border); transition: width 0.25s var(--tk-ease), background 0.25s var(--tk-ease); }
.tk-slider-dots button.is-active .tk-slider-dots__dot { background: var(--tk-green); width: 22px; border-radius: 5px; box-shadow: var(--tk-glow-sm); }

/* Always-on horizontal slider (e.g. pricing): 3 visible on desktop, slide to the rest. */
.tk-slider-always { display: flex; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem; padding: 18px 3px 0.5rem; margin-top: -4px; scrollbar-width: none; scroll-padding: 0; }
.tk-slider-always::-webkit-scrollbar { display: none; }
.tk-slider-always > * { flex: 0 0 calc((100% - 2rem) / 3); scroll-snap-align: start; }
.tk-slider-always + .tk-slider-dots { display: flex; }
@media (max-width: 980px) { .tk-slider-always > * { flex: 0 0 calc((100% - 1rem) / 2); } }
@media (max-width: 640px) { .tk-slider-always > * { flex: 0 0 86%; } }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
	.tk-reveal { opacity: 1; transform: none; }
	.tk-marquee__track { animation: none; }
}

/* WP core alignment helpers used inside prose */
.alignwide { width: 100%; }
.alignfull { width: 100%; }
.aligncenter { margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ==========================================================================
   Pain -> fix section
   ========================================================================== */
.tk-painfix { display: grid; gap: 1rem; margin-top: 2.5rem; }
.tk-painfix__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 1rem; }
.tk-painfix__pain, .tk-painfix__fix { background: var(--tk-card); border: 1px solid var(--tk-border); border-radius: var(--tk-radius); padding: 1.4rem 1.5rem; }
.tk-painfix__pain { display: flex; gap: 1rem; align-items: flex-start; border-color: var(--tk-border); }
.tk-painfix__ico { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.28); color: #fca5a5; display: grid; place-items: center; }
.tk-painfix__pain h3 { font-size: 1.0625rem; margin-bottom: 0.35rem; }
.tk-painfix__stat { font-size: 0.875rem; color: var(--tk-muted); margin: 0; }
.tk-painfix__arrow { display: grid; place-items: center; color: var(--tk-green); }
.tk-painfix__arrow svg { width: 20px; height: 20px; }
.tk-painfix__fix { border-color: var(--tk-green-line); background: linear-gradient(180deg, rgba(0,230,118,0.05), var(--tk-card)); }
.tk-painfix__tag { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.8125rem; font-weight: 600; color: var(--tk-green); margin-bottom: 0.5rem; }
.tk-painfix__fix p { font-size: 0.9375rem; margin: 0; color: var(--tk-text-2); }
@media (max-width: 860px) {
	.tk-painfix__row { grid-template-columns: 1fr; gap: 0; }
	.tk-painfix__arrow { transform: rotate(90deg); padding: 0.4rem 0; }
}

/* ==========================================================================
   Recovery / ROI calculator
   ========================================================================== */
.tk-roi { display: grid; grid-template-columns: 1fr 1.05fr; gap: 1.5rem; margin-top: 2.5rem; align-items: stretch; }
.tk-roi__inputs { background: var(--tk-card); border: 1px solid var(--tk-border); border-radius: var(--tk-radius-lg); padding: 1.75rem; display: grid; gap: 1.6rem; align-content: start; }
.tk-roi__curbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.tk-roi__curlabel { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tk-muted); }
.tk-roi__field label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--tk-text); margin-bottom: 0.5rem; }
.tk-roi__val { display: block; font-size: 1.5rem; font-weight: 700; color: var(--tk-green); letter-spacing: -0.02em; margin-bottom: 0.6rem; }
.tk-roi__field input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: var(--tk-border); outline-offset: 4px; }
.tk-roi__field input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--tk-green); border: 3px solid #04140b; box-shadow: var(--tk-glow-sm); cursor: pointer; }
.tk-roi__field input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--tk-green); border: 3px solid #04140b; box-shadow: var(--tk-glow-sm); cursor: pointer; }
.tk-roi__scale { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--tk-muted); margin-top: 0.5rem; }
.tk-roi__result { background: linear-gradient(180deg, rgba(0,230,118,0.08), var(--tk-card)); border: 1px solid var(--tk-green-line); border-radius: var(--tk-radius-lg); padding: 1.75rem; display: flex; flex-direction: column; }
.tk-roi__headline { padding-bottom: 1.25rem; border-bottom: 1px solid var(--tk-border-soft); margin-bottom: 1.25rem; }
.tk-roi__headline-label { display: block; font-size: 0.875rem; color: var(--tk-text-2); margin-bottom: 0.35rem; }
.tk-roi__headline-num { display: block; font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 800; color: var(--tk-green); letter-spacing: -0.03em; line-height: 1; }
.tk-roi__per { font-size: 1.1rem; font-weight: 600; color: var(--tk-text-2); margin-left: 0.2rem; }
.tk-roi__stats { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.tk-roi__stat { display: flex; flex-direction: column; }
.tk-roi__stat-num { font-size: 1.35rem; font-weight: 700; color: var(--tk-text); display: inline-flex; align-items: center; }
.tk-roi__stat-num svg { width: 14px; height: 14px; color: var(--tk-green); margin: 0 0.35rem; }
.tk-roi__stat-label { font-size: 0.8125rem; color: var(--tk-muted); }
.tk-roi__cta { margin-top: auto; }
.tk-roi__cta .tk-btn { width: 100%; justify-content: center; }
.tk-roi__disclaimer { font-size: 0.75rem; color: var(--tk-muted); margin: 0.85rem 0 0; line-height: 1.5; }
@media (max-width: 820px) {
	.tk-roi { grid-template-columns: 1fr; }
	/* Let the single column shrink to the container instead of being widened by
	   the currency bar's intrinsic width (which clipped the cards off-screen). */
	.tk-roi > * { min-width: 0; }
	.tk-roi__curbar { flex-wrap: wrap; }
}

/* ---- HTML sitemap page ([rank_math_html_sitemap]) ---- */
.tk-sitemap > p { color: var(--tk-text-2); max-width: 60ch; margin: 0 0 2.5rem; }
.tk-sitemap > p a { color: var(--tk-green); }
.tk-sitemap .rank-math-html-sitemap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.25rem 2.5rem; }
.tk-sitemap .rank-math-html-sitemap__title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--tk-muted); font-weight: 600; margin: 0 0 0.9rem; padding-bottom: 0.55rem; border-bottom: 1px solid var(--tk-border-soft); }
.tk-sitemap .rank-math-html-sitemap__list { list-style: none; display: grid; gap: 0.6rem; margin: 0; padding: 0; }
.tk-sitemap .rank-math-html-sitemap__link { color: var(--tk-text-2); font-size: 0.95rem; transition: color 0.2s var(--tk-ease); }
.tk-sitemap .rank-math-html-sitemap__link:hover { color: var(--tk-green); }
@media (max-width: 640px) { .tk-sitemap .rank-math-html-sitemap { grid-template-columns: 1fr; gap: 1.75rem; } }

/* Comparison page extras */
.tk-vs--lg th, .tk-vs--lg td { padding: 1.05rem 1.1rem; }
.tk-vs__cap { display: block; font-weight: 600; color: var(--tk-text); font-size: 0.9375rem; }
.tk-vs__sub { display: block; font-size: 0.8125rem; color: var(--tk-muted); margin-top: 0.15rem; }
.tk-vs__note { font-size: 0.8125rem; color: var(--tk-muted); margin-top: 1rem; max-width: 70ch; }

/* Footer company info (transparency / EEAT) */
.tk-footer__org { font-style: normal; margin-top: 1.25rem; display: grid; gap: 0.2rem; font-size: 0.8125rem; line-height: 1.5; color: var(--tk-muted); }
.tk-footer__org .tk-footer__org-name { color: var(--tk-text-2); font-weight: 600; }
.tk-footer__org a { color: var(--tk-text-2); }
.tk-footer__org a:hover { color: var(--tk-green); }
