/* TemplateFlows homepage. Loaded on the front page only. */

/* Hero: centered search-first layout with a workflow canvas that overlaps the next section */
.tf-hero2 { position: relative; background: var(--tf-brand); color: var(--tf-on-dark); padding: 88px 0 0; isolation: isolate; }
.tf-hero2::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.09) 1px, transparent 0); background-size: 24px 24px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); }
.tf-hero2__inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.tf-hero2 h1 { color: #FFFFFF; font-size: clamp(2.25rem, 1.2rem + 3.4vw, 3.6rem); line-height: 1.06; letter-spacing: -0.03em; max-width: none; }
.tf-hero2 h1 span { display: block; color: var(--tf-mint); }
.tf-hero2__lead { margin-top: 20px; font-size: 19px; line-height: 1.6; color: var(--tf-on-dark-muted); max-width: 52ch; }
.tf-hero2 .tf-search { margin-top: 32px; width: 100%; max-width: 680px; padding: 8px; border: 0; border-radius: 14px; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 24px 48px -24px rgba(0,0,0,.6); }
.tf-hero2 .tf-search input { height: 48px; font-size: 17px; }
.tf-hero2 .tf-search .tf-btn { min-height: 48px; padding: 0 24px; }
.tf-hero2__try { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; color: var(--tf-on-dark-muted); }
.tf-hero2__try a { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: var(--tf-r-pill); background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); color: var(--tf-on-dark) !important; font-weight: 500; text-decoration: none !important; transition: background-color .15s; }
.tf-hero2__try a:hover { background: rgba(85,224,179,.16); }
.tf-hero2__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

.tf-hero2__stage { position: relative; z-index: 2; margin-top: 64px; margin-bottom: -136px; }
.tf-canvas { margin: 0; padding: 20px; border-radius: 22px; background: #0B1430; box-shadow: 0 0 0 1px rgba(255,255,255,.07), 0 40px 80px -40px rgba(5,10,30,.75); }
.tf-canvas__frame { border-radius: 14px; overflow: hidden; background: #0E1938; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
.tf-canvas__frame > svg { display: block; width: 100%; height: auto; }
.tf-canvas__frame svg svg { width: 24px; height: 24px; max-width: none; overflow: visible; }
.tf-canvas figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; padding: 0 4px; font-size: 13.5px; color: var(--tf-on-dark-muted); }
.tf-canvas figcaption strong { color: #FFFFFF; font-weight: 600; }
.tf-flow { stroke-dasharray: 4 12; animation: tf-flow 1.4s linear infinite; }
@keyframes tf-flow { to { stroke-dashoffset: -32; } }

/* Section directly after the hero makes room for the overlapping canvas */
.tf-after-hero { padding-top: calc(var(--tf-s7) + 136px); }
.tf-apps { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; margin-bottom: var(--tf-s7); padding-bottom: var(--tf-s6); border-bottom: 1px solid var(--tf-border); }
.tf-apps__label { width: 100%; text-align: center; font-size: 14px; color: var(--tf-muted); margin-bottom: 4px; }
.tf-apps__name { font: 700 17px/1 var(--tf-font-head); color: #8391A7; letter-spacing: -0.01em; }

/* Use case bento: 4 columns, first and last cards span two */
.tf-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tf-bento > :nth-child(1), .tf-bento > :nth-child(6) { grid-column: span 2; }
.tf-bento .tf-termcard { min-height: 200px; padding: 26px; }
.tf-bento > :nth-child(1) .tf-termcard__name { font-size: 1.5rem; }
.tf-bento > :nth-child(1) .tf-termcard__desc { font-size: 16px; max-width: 40ch; }
.tf-bento > :nth-child(6) { background: #EAF6F1; border-color: #CFEBDF; }
.tf-bento > :nth-child(6) .tf-termcard__icon { background: var(--tf-accent); color: #FFFFFF; }

.tf-tools-band__list > .tf-toolcard:only-child { grid-column: 1 / -1; }

/* Section heads on the homepage get a little more presence */
.tf-home .tf-shead h2 { font-size: clamp(1.75rem, 1.35rem + 1.3vw, 2.5rem); letter-spacing: -0.025em; }

/* Featured template cards: lift on hover */
.tf-home .tf-tcard { transition: box-shadow .2s, border-color .2s, transform .2s; }
.tf-home .tf-tcard:hover { transform: translateY(-3px); }

@media (max-width: 1024px) {
	.tf-hero2 { padding-top: 64px; }
	.tf-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tf-hero2__stage { margin-bottom: -96px; }
	.tf-after-hero { padding-top: calc(var(--tf-s7) + 96px); }
}
@media (max-width: 680px) {
	.tf-hero2 { padding: 48px 0 56px; }
	.tf-hero2__inner { text-align: left; align-items: stretch; }
	.tf-hero2 h1 span { display: inline; }
	.tf-hero2__lead { font-size: 17px; }
	.tf-hero2__try { justify-content: flex-start; }
	.tf-hero2__ctas { justify-content: flex-start; }
	.tf-hero2__ctas .tf-btn { flex: 1 1 auto; }
	.tf-hero2__stage { display: none; }
	.tf-after-hero { padding-top: var(--tf-s6); }
	.tf-apps { justify-content: flex-start; gap: 10px 20px; margin-bottom: var(--tf-s6); padding-bottom: var(--tf-s5); }
	.tf-apps__label { text-align: left; }
	.tf-apps__name { font-size: 15px; }
	.tf-bento { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.tf-bento > :nth-child(1), .tf-bento > :nth-child(6) { grid-column: auto; }
	.tf-bento .tf-termcard { min-height: 0; padding: 14px 16px; }
	.tf-bento > :nth-child(1) .tf-termcard__name { font-size: 1rem; }
	.tf-bento .tf-termcard__foot > span { display: none; }
}
