/* Themes Coder brand tokens. Keep in sync with Elementor > Site Settings > Global Colors/Fonts.
 * Brand green #87BE22 comes from the original TC logo. White text on it fails contrast (2.2:1),
 * so green buttons use ink text, and links on white use --tc-link (5.1:1). */
:root {
	--tc-brand: #87BE22;      /* brand green: logo, buttons, icons */
	--tc-brand-600: #76A81A;  /* button hover */
	--tc-brand-50: #F1F7E4;   /* tint surface, badges */
	--tc-link: #4E7A0C;       /* green text and links on white (AA) */
	--tc-ink: #0E1424;        /* headings, header, dark bands, text on green */
	--tc-ink-2: #161D2E;      /* dark surface */
	--tc-text: #3A4250;       /* body text */
	--tc-muted: #5C6470;      /* secondary text */
	--tc-line: #E1E5DA;       /* borders */
	--tc-surface: #F4F6F1;    /* light section bg */
	--tc-white: #FFFFFF;

	--tc-font-head: "Saira Condensed", "Arial Narrow", ui-sans-serif, sans-serif;
	--tc-font-body: "Inter", ui-sans-serif, system-ui, sans-serif;

	--tc-radius: 12px;
	--tc-radius-lg: 20px;
	--tc-space-section: clamp(64px, 9vw, 128px);
}

.tc-buy-btn {
	display: inline-flex; align-items: center; gap: .5em;
	padding: .85em 1.4em; border-radius: 999px;
	background: var(--tc-brand); color: var(--tc-ink);
	font: 600 1rem/1 var(--tc-font-body); text-decoration: none;
	transition: background .2s;
}
.tc-buy-btn:hover, .tc-buy-btn:focus-visible { background: var(--tc-brand-600); color: var(--tc-ink); }
.tc-buy-btn--ghost { background: transparent; color: var(--tc-ink); box-shadow: inset 0 0 0 1.5px var(--tc-line); }
.tc-buy-btn--ghost:hover { background: var(--tc-surface); color: var(--tc-ink); }

/* Global header/footer (Elementor Theme Builder) */
.elementor-location-footer .elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.elementor-location-header .elementor-nav-menu--dropdown { box-shadow: 0 18px 40px rgba(14, 20, 36, .35); }

/* Home: browser frame around product screenshots */
.tc-browser { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); }
.tc-browser__bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #E9ECE4; }
.tc-browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #C9CEC1; }
.tc-browser__bar span { margin-left: 10px; flex: 1; max-width: 240px; height: 16px; border-radius: 8px; background: #fff; font: 500 10px/16px var(--tc-font-body); color: #8A9183; padding-left: 8px; overflow: hidden; white-space: nowrap; }
.tc-browser img { display: block; width: 100%; height: auto; }
.tc-hero-visual { position: relative; }
.tc-hero-visual .tc-float { position: absolute; left: -18px; bottom: -22px; background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: 0 18px 40px rgba(0, 0, 0, .25); display: grid; gap: 2px; }
.tc-float b { font: 700 28px/1 var(--tc-font-head); color: var(--tc-ink); }
.tc-float small { font: 500 13px/1.3 var(--tc-font-body); color: var(--tc-muted); }
@media (max-width: 767px) { .tc-hero-visual .tc-float { left: 12px; bottom: -18px; padding: 10px 12px; } .tc-float b { font-size: 22px; } }

/* Home: Templeto Kit preview (built in CSS, no screenshot yet) */
.tc-kitmock { background: var(--tc-ink); border-radius: 14px; padding: 22px; display: grid; gap: 12px; aspect-ratio: 895 / 430; align-content: center; }
.tc-kitmock .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tc-kitmock .btn { background: var(--tc-brand); color: var(--tc-ink); font: 600 13px/1 var(--tc-font-body); padding: 10px 14px; border-radius: 8px; }
.tc-kitmock .pill { background: rgba(255, 255, 255, .08); color: #E6EADF; font: 500 12px/1 var(--tc-font-body); padding: 8px 11px; border-radius: 999px; }
.tc-kitmock .pill.warn { background: #FFE8B3; color: #5A3B00; }
.tc-kitmock .bar { background: rgba(255, 255, 255, .06); border-radius: 10px; padding: 10px 12px; color: #E6EADF; font: 500 12px/1.3 var(--tc-font-body); display: grid; gap: 8px; }
.tc-kitmock .bar i { display: block; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--tc-brand) 72%, rgba(255, 255, 255, .12) 72%); }

/* Home: platform chips */
.tc-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tc-chips span { border: 1px solid var(--tc-line); border-radius: 999px; padding: 9px 16px; font: 500 15px/1 var(--tc-font-body); color: var(--tc-ink); background: #fff; }
.tc-chips span.on { background: var(--tc-brand-50); border-color: #CFE3A6; color: var(--tc-link); }

/* Cards: whole-card hover lift */
.tc-card { transition: transform .2s ease, box-shadow .2s ease; }
.tc-card:hover { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .tc-card { transition: none; } .tc-card:hover { transform: none; } }

/* Home: stats left-aligned like their labels */
.tc-stat .elementor-counter-number-wrapper { justify-content: flex-start; text-align: left; }
.tc-stat .elementor-counter-title { text-align: left; }
.tc-stat .elementor-counter-number-prefix, .tc-stat .elementor-counter-number-suffix { flex-grow: 0; }

/* Templeto page ------------------------------------------------------------ */
.tc-statrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tc-statrow div { display: grid; gap: 4px; border-left: 3px solid var(--tc-brand); padding-left: 16px; }
.tc-statrow b { font: 600 44px/1 var(--tc-font-head); color: var(--tc-ink); }
.tc-statrow span { font: 500 15px/1.4 var(--tc-font-body); color: var(--tc-muted); }
@media (max-width: 767px) { .tc-statrow { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; } .tc-statrow b { font-size: 34px; } }

.tc-demos__filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; }
.tc-demos__filter button { border: 1px solid var(--tc-line); background: #fff; color: var(--tc-ink); border-radius: 999px; padding: 9px 16px; font: 500 15px/1 var(--tc-font-body); cursor: pointer; }
.tc-demos__filter button small { color: var(--tc-muted); font-size: 12px; margin-left: 2px; }
.tc-demos__filter button:hover { border-color: #CFE3A6; }
.tc-demos__filter button.on { background: var(--tc-ink); border-color: var(--tc-ink); color: #fff; }
.tc-demos__filter button.on small { color: #B9C1B0; }
.tc-demos__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 24px; }
.tc-demo { flex: 0 0 calc((100% - 72px) / 4); display: grid; gap: 4px; text-decoration: none; color: var(--tc-ink); }
.tc-demo[hidden] { display: none; }
.tc-demo__img { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 14px; background: #E7EDDC; border: 1px solid var(--tc-line); margin-bottom: 8px; }
.tc-demo__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s ease; }
.tc-demo:hover .tc-demo__img img { transform: translateY(-4%); }
.tc-demo b { font: 600 21px/1.1 var(--tc-font-head); }
.tc-demo small { font: 500 14px/1.3 var(--tc-font-body); color: var(--tc-link); }
@media (max-width: 1024px) { .tc-demo { flex-basis: calc((100% - 48px) / 3); } }
@media (max-width: 767px) { .tc-demos__grid { gap: 20px 14px; } .tc-demo { flex-basis: calc((100% - 14px) / 2); } .tc-demo b { font-size: 18px; } .tc-demo small { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .tc-demo__img img { transition: none; } .tc-demo:hover .tc-demo__img img { transform: none; } }

.tc-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tc-ticks li { position: relative; padding-left: 30px; color: var(--tc-ink); font-weight: 500; }
.tc-ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--tc-brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%234E7A0C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }

.tc-feature-img { display: block; width: 100%; height: auto; aspect-ratio: 803 / 460; object-fit: cover; background: #E7EDDC; }
.tc-toolgroups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tc-toolgroups > div { background: #fff; border: 1px solid var(--tc-line); border-radius: 18px; padding: 24px 22px; }
.tc-toolgroups h3 { margin: 0 0 14px; font: 600 22px/1.1 var(--tc-font-head); color: var(--tc-ink); }
.tc-toolgroups ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tc-toolgroups li { display: grid; gap: 2px; padding-top: 12px; border-top: 1px solid var(--tc-line); }
.tc-toolgroups li b { font: 600 15px/1.3 var(--tc-font-body); color: var(--tc-ink); }
.tc-toolgroups li span { font: 400 14px/1.45 var(--tc-font-body); color: var(--tc-muted); }
@media (max-width: 1024px) { .tc-toolgroups { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tc-toolgroups { grid-template-columns: 1fr; } }

.elementor .tc-wide-shot { display: block; width: 100%; max-width: 960px; height: auto; margin: 0 auto; border-radius: 18px; }

.tc-phones { display: flex; justify-content: center; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 16px; scrollbar-width: thin; }
.elementor .tc-phones img { flex: 0 0 auto; width: 200px; height: auto; border-radius: 26px; scroll-snap-align: center; box-shadow: 0 24px 50px rgba(0, 0, 0, .4); }
.tc-phones img:nth-child(odd) { margin-top: 36px; }
.tc-phones:focus-visible { outline: 2px solid var(--tc-brand); outline-offset: 4px; border-radius: 12px; }
@media (max-width: 1100px) { .tc-phones { justify-content: flex-start; } }
@media (max-width: 767px) { .elementor .tc-phones img { width: 62vw; max-width: 240px; } .tc-phones img:nth-child(odd) { margin-top: 0; } }

.tc-soon { display: grid; gap: 4px; border-left: 3px solid var(--tc-brand); background: var(--tc-surface); border-radius: 0 12px 12px 0; padding: 14px 18px; }
.tc-soon b { font: 600 16px/1.3 var(--tc-font-body); color: var(--tc-ink); }
.tc-soon span { font: 400 15px/1.5 var(--tc-font-body); color: var(--tc-text); }
.tc-included { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tc-included li { display: grid; gap: 4px; background: var(--tc-surface); border-radius: 14px; padding: 18px; }
.tc-included b { font: 600 16px/1.3 var(--tc-font-body); color: var(--tc-ink); }
.tc-included span { font: 400 14px/1.5 var(--tc-font-body); color: var(--tc-muted); }
@media (max-width: 600px) { .tc-included { grid-template-columns: 1fr; } }

.tc-faq { display: grid; gap: 12px; }
.tc-faq details { background: #fff; border: 1px solid var(--tc-line); border-radius: 14px; }
.tc-faq summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; position: relative; font: 600 17px/1.4 var(--tc-font-body); color: var(--tc-ink); }
.tc-faq summary::-webkit-details-marker { display: none; }
.tc-faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font: 400 26px/1 var(--tc-font-body); color: var(--tc-link); }
.tc-faq details[open] summary::after { content: "−"; }
.tc-faq summary:focus-visible { outline: 2px solid var(--tc-brand); outline-offset: 2px; border-radius: 14px; }
.tc-faq details p { margin: 0; padding: 0 20px 20px; font: 400 16px/1.65 var(--tc-font-body); color: var(--tc-text); }

/* Templeto Kit page ------------------------------------------------------- */
@media (max-width: 1024px) { .tc-flip > .e-con:first-child { order: 2; } }
.tc-paid { font: 600 11px/1 var(--tc-font-body); font-style: normal; color: var(--tc-link); background: var(--tc-brand-50); border-radius: 999px; padding: 3px 7px; margin-left: 4px; vertical-align: 1px; white-space: nowrap; }
.tc-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: start; }
.tc-plan { position: relative; background: #fff; border: 1px solid var(--tc-line); border-radius: 18px; padding: 26px 22px; }
.tc-plan--perk { border: 2px solid var(--tc-brand); }
.tc-plan__tag { position: absolute; top: -12px; left: 20px; right: 20px; text-align: center; background: var(--tc-brand); color: var(--tc-ink); border-radius: 999px; padding: 5px 10px; font: 600 12px/1.2 var(--tc-font-body); }
.tc-plan h3 { margin: 0; font: 600 24px/1.1 var(--tc-font-head); color: var(--tc-ink); }
.tc-plan__price { margin: 10px 0 0; font: 600 40px/1 var(--tc-font-head); color: var(--tc-ink); }
.tc-plan__price small { font: 500 14px/1 var(--tc-font-body); color: var(--tc-muted); margin-left: 4px; }
.tc-plan__trial { margin: 6px 0 16px; font: 500 14px/1.3 var(--tc-font-body); color: var(--tc-link); }
.tc-plan ul { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--tc-line); display: grid; gap: 9px; }
.tc-plan li { position: relative; padding-left: 22px; font: 400 14px/1.45 var(--tc-font-body); color: var(--tc-text); }
.tc-plan li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 10px; height: 6px; border-left: 2px solid var(--tc-link); border-bottom: 2px solid var(--tc-link); transform: rotate(-45deg); }
@media (max-width: 1024px) { .tc-plans { grid-template-columns: repeat(2, 1fr); row-gap: 28px; } }
@media (max-width: 600px) { .tc-plans { grid-template-columns: 1fr; } }
.tc-perk { display: grid; gap: 14px; }
.tc-perk div { display: grid; gap: 4px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; padding: 18px 20px; }
.tc-perk b { font: 600 28px/1.1 var(--tc-font-head); color: #A9D457; }
.tc-perk span { font: 400 15px/1.5 var(--tc-font-body); color: #D5DBCC; }

/* Product pages: on tablets and phones the hero's sale price sits on the light-green wave, where the
   brand green barely shows. Darken it there. */
@media (max-width: 1024px) {
	.single-tc_product .elementor-widget-text-editor:has(del) { color: #3f5f00; }
	.single-tc_product .elementor-widget-text-editor:has(del) span[style*="#a4c639"] { color: #3f5f00 !important; }
	.single-tc_product .elementor-widget-text-editor:has(del) span:not([style*="color"]) { color: #1d1d1d; }
}

/* Card titles are links; on posts the parent theme's pink link colour loads after the lander reset. */
.tp-card-title a { color: inherit; }
