/*
 * Who it's for: the homepage section (template-parts/front-who.php), /for/ (for-index.php) and the
 * business pages (for-business.php). Loaded after front.css and uses its colours, buttons and sections.
 */

.tu-who [hidden], .tu-for [hidden] { display: none !important; }

.tu-btn-line { border-color: #c9cfe0; background: #fff; color: var(--tu-ink) !important; }
.tu-btn-line:hover, .tu-btn-line:focus { border-color: var(--tu-navy); color: var(--tu-navy) !important; }

/* ---- Search box ---- */
.tu-for-search {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	max-width: 620px;
	margin: 0 auto;
	padding: 6px 6px 6px 20px;
	border: 1.5px solid var(--tu-line);
	border-radius: 999px;
	background: #fff;
}
.tu-for-search:focus-within { border-color: var(--tu-navy); box-shadow: 0 0 0 4px rgba(124, 202, 0, .45); }
.tu-for-search > svg { font-size: 20px; color: var(--tu-muted); }
.tu-for-search input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 10px 0;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 17px;
	color: var(--tu-ink);
}
.tu-for-search input:focus { outline: none; }
.tu-for-search input::-webkit-search-cancel-button { cursor: pointer; }
.tu-for-search .tu-btn { flex: none; padding: 11px 22px; }

/* ---- Tiles ---- */
.tu-for-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.tu-for-tile {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 22px;
	border: 1px solid var(--tu-line);
	border-radius: var(--tu-radius);
	background: #fff;
	box-shadow: var(--tu-shadow);
	color: var(--tu-ink) !important;
	text-decoration: none !important;
	transition: transform .15s, box-shadow .15s, border-color .15s;
}
.tu-for-tile:hover, .tu-for-tile:focus { transform: translateY(-3px); border-color: #c9cfe0; box-shadow: 0 2px 4px rgba(21, 21, 46, .06), 0 16px 36px rgba(21, 21, 46, .1); }
.tu-for-tile strong { font-size: 18px; line-height: 1.3; }
.tu-for-tile > span:not(.tu-icon):not(.tu-more) { flex: 1 1 auto; font-size: 15px; line-height: 1.45; color: var(--tu-muted); }
.tu-for-tile .tu-icon { width: 44px; height: 44px; margin-bottom: 4px; border-radius: 12px; font-size: 22px; }
.tu-for-tile .tu-more { margin-top: 6px; font-size: 14px; color: var(--tu-navy); }
.tu-for-tile:hover .tu-more svg { transform: translateX(3px); }

/* ---- Goal buttons ---- */
.tu-who-goals ul, .tu-for-goals ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tu-goal {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 16px;
	border: 1.5px solid var(--tu-line);
	border-radius: 999px;
	background: #fff;
	color: var(--tu-ink) !important;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background-color .15s, border-color .15s;
}
.tu-goal:hover, .tu-goal:focus { border-color: var(--tu-navy); color: var(--tu-navy) !important; }

/* ---- Homepage section ---- */
.tu-who .tu-sec-head { margin-bottom: 32px; }
.tu-who .tu-for-grid { margin-top: 36px; }
.tu-who-goals { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin-top: 36px; }
.tu-who-goals > span { font-weight: 700; color: var(--tu-muted); }
.tu-who-all { margin-top: 28px !important; text-align: center; }
.tu-who-all .tu-more { margin-top: 0; font-size: 17px; }

/* ---- /for/ and business page heroes ---- */
.tu-for-hero {
	position: relative;
	padding: 72px 0 60px;
	color: #fff;
	background:
		radial-gradient(900px 520px at 88% 10%, rgba(124, 202, 0, .2), transparent 62%),
		linear-gradient(160deg, var(--tu-navy) 0%, var(--tu-navy-deep) 100%);
}
.tu-for-hero h1 { color: #fff; font-size: clamp(36px, 5.4vw, 58px); line-height: 1.06; letter-spacing: -.03em; }
.tu-for-hero .tu-lead { max-width: 680px; }
.tu-for-hero a { color: #fff; }
.tu-for-hero-inner { max-width: 860px; text-align: center; }
.tu-for-hero-inner .tu-lead { margin-left: auto; margin-right: auto; }
.tu-for-hero .tu-for-search { margin-top: 30px; border-color: #fff; }
.tu-for-goals { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 26px; }
.tu-for-goals > span { font-weight: 600; color: rgba(255, 255, 255, .86); }
.tu-for-goals .tu-goal { border-color: rgba(255, 255, 255, .5); background: transparent; color: #fff !important; cursor: pointer; }
.tu-for-goals .tu-goal:hover, .tu-for-goals .tu-goal:focus { border-color: #fff; background: rgba(255, 255, 255, .1); color: #fff !important; }
.tu-for-goals .tu-goal[aria-current="true"], .tu-for-goals .tu-goal[aria-pressed="true"] { border-color: var(--tu-green); background: var(--tu-green); color: var(--tu-navy-deep) !important; }

/* ---- /for/ list ---- */
.tu-for-list { padding: 40px 0 80px; }
.tu-for-count { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 40px; padding-bottom: 14px; border-bottom: 1px solid var(--tu-line); }
.tu-for-count p { font-weight: 600; color: var(--tu-muted); }
.tu-for-clear { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--tu-line); border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none !important; }
.tu-for-group + .tu-for-group { margin-top: 44px; }
.tu-for-group h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 22px; letter-spacing: -.01em; }
.tu-for-cat-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: rgba(124, 202, 0, .16); color: var(--tu-green-text); font-size: 21px; }
.tu-for-none { padding: 40px 20px; border-radius: var(--tu-radius); background: var(--tu-alt); text-align: center; }
.tu-for-none h2 { font-size: 24px; }
.tu-for-none p { max-width: 520px; margin: 12px auto 20px !important; color: var(--tu-muted); }
.tu-for-cta { text-align: center; }
.tu-for-cta h2, .tu-biz-cta h2 { font-size: clamp(28px, 3.6vw, 38px); line-height: 1.15; }
.tu-for-cta p { margin-top: 14px !important; font-size: 18px; color: var(--tu-muted); }
.tu-for-cta .tu-actions, .tu-biz-cta .tu-actions { justify-content: center; margin-top: 26px; }

/* ---- Business page ---- */
.tu-biz-hero { padding: 22px 0 72px; }
.tu-crumbs { margin-bottom: 36px; font-size: 14px; font-weight: 600; }
.tu-crumbs a { color: rgba(255, 255, 255, .8) !important; text-decoration: none; }
.tu-crumbs a:hover, .tu-crumbs a:focus { color: #fff !important; text-decoration: underline; }
.tu-crumbs span[aria-hidden] { margin: 0 8px; color: rgba(255, 255, 255, .5); }
.tu-biz-hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: center; }
.tu-biz-hero h1 { font-size: clamp(38px, 5.6vw, 62px); line-height: 1.04; }
.tu-biz-hero .tu-lead { margin-top: 20px !important; max-width: 600px; font-size: 19px; }
.tu-biz-hero .tu-ticks { margin-top: 22px; gap: 10px; }
.tu-biz-hero .tu-ticks li { color: rgba(255, 255, 255, .92); }
.tu-biz-hero .tu-actions { margin-top: 28px; }

.tu-phone-wrap { display: flex; justify-content: center; }
.tu-phone { position: relative; width: 300px; max-width: 100%; margin: 0; padding: 10px; border-radius: 40px; background: #15152e; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.tu-phone-screen { overflow: hidden; border-radius: 30px; background: #fff; color: var(--tu-ink); }
.tu-phone-head { display: flex; align-items: center; gap: 10px; padding: 18px 16px 14px; border-bottom: 1px solid var(--tu-line); font-size: 12px; color: var(--tu-muted); }
.tu-phone-head strong { display: block; font-size: 14px; color: var(--tu-ink); }
.tu-phone-avatar { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--tu-navy); color: #fff; font-size: 13px; font-weight: 800; }
.tu-phone-msgs { display: flex; flex-direction: column; gap: 10px; padding: 16px 14px 22px; font-size: 14px; line-height: 1.4; }
.tu-phone-time { align-self: center; font-size: 11px; font-weight: 600; color: var(--tu-muted); }
.tu-phone-chip { position: absolute; left: -26px; bottom: -18px; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--tu-green); color: var(--tu-navy-deep); font-size: 14px; font-weight: 700; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); transform: rotate(-3deg); }
.tu-phone-chip svg { font-size: 18px; stroke-width: 2.8; }

.tu-bubble { max-width: 86%; padding: 10px 13px; }
.tu-bubble-them { align-self: flex-start; border-radius: 18px 18px 18px 6px; background: #eef0f6; color: var(--tu-ink); }
.tu-bubble-me { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: var(--tu-navy); color: #fff; font-weight: 600; }

.tu-moments { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; }
.tu-moment { display: flex; flex-direction: column; gap: 12px; padding: 26px; border: 1px solid var(--tu-line); border-radius: var(--tu-radius); background: #fff; box-shadow: var(--tu-shadow); }
.tu-moment-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.tu-moment-when { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--tu-green-text); }
.tu-moment-tag { padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 137, .07); color: var(--tu-navy); font-size: 12px; font-weight: 700; }
.tu-moment h3 { font-size: 21px; line-height: 1.3; }
.tu-moment > p { font-size: 15px; line-height: 1.55; color: var(--tu-muted); }
.tu-moment-msgs { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding: 14px; border-radius: 14px; background: var(--tu-alt); font-size: 14px; line-height: 1.4; }
.tu-moment-msgs .tu-bubble { max-width: 88%; padding: 9px 12px; }
.tu-moment-msgs .tu-bubble-them { border: 1px solid var(--tu-line); border-radius: 16px 16px 16px 5px; background: #fff; }
.tu-moment-msgs .tu-bubble-me { border-radius: 16px 16px 5px 16px; }

.tu-feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.tu-feat { display: flex; gap: 14px; padding: 20px; border: 1px solid var(--tu-line); border-radius: var(--tu-radius); background: #fff; color: var(--tu-muted) !important; font-size: 15px; line-height: 1.45; text-decoration: none !important; }
a.tu-feat:hover, a.tu-feat:focus { border-color: #c9cfe0; box-shadow: var(--tu-shadow); }
.tu-feat .tu-icon { width: 44px; height: 44px; margin: 0; border-radius: 12px; font-size: 22px; }
.tu-feat strong { display: block; margin-bottom: 4px; font-size: 17px; color: var(--tu-ink); }

.tu-callout { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 36px; padding: 26px 28px; border: 1px solid rgba(61, 115, 0, .25); border-radius: var(--tu-radius); background: rgba(124, 202, 0, .12); }
.tu-callout-icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--tu-green-text); font-size: 24px; }
.tu-callout > div { flex: 999 1 420px; min-width: 0; }
.tu-callout h3 { font-size: 19px; }
.tu-callout p { margin-top: 6px !important; font-size: 15px; line-height: 1.55; }

.tu-biz-plan { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px; }
.tu-biz-plan-copy { flex: 1 1 340px; min-width: 0; }
.tu-biz-plan-copy h2 { font-size: clamp(28px, 3.6vw, 38px); line-height: 1.15; }
.tu-biz-plan-copy p:not(.tu-eyebrow) { margin-top: 14px !important; font-size: 17px; color: var(--tu-muted); }
.tu-biz-plan-card { flex: 1 1 420px; min-width: 0; padding: 28px; border: 2px solid var(--tu-navy); border-radius: 20px; background: #fff; box-shadow: var(--tu-shadow); }
.tu-biz-plan-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.tu-biz-plan-head h3 { font-size: 24px; }
.tu-biz-plan-card .tu-price { margin: 0 !important; }
.tu-biz-plan-card .tu-price strong { font-size: 40px; }
.tu-biz-plan-card .tu-ticks { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 20px; margin: 18px 0 24px; font-size: 15px; }
.tu-biz-plan-card .tu-ticks svg { margin-top: 4px; font-size: 16px; color: var(--tu-green-text); }

.tu-biz .tu-faqs details:first-child summary { padding-top: 22px; }
.tu-biz-cta { text-align: center; }
.tu-biz-cta p { margin-top: 14px !important; font-size: 18px; color: rgba(255, 255, 255, .86); }
.tu-biz-other { margin-top: 22px !important; font-size: 15px; }
.tu-biz-other a { color: #fff !important; font-weight: 600; }

/* ---- Smaller screens ---- */
@media (max-width: 860px) {
	.tu-biz-hero-grid { grid-template-columns: 1fr; gap: 56px; }
	.tu-for-hero { padding: 56px 0 48px; }
	.tu-biz-hero { padding: 18px 0 64px; }
}
@media (max-width: 600px) {
	.tu-for-search { padding-left: 14px; }
	.tu-for-search > svg { display: none; }
	.tu-for-search .tu-btn { padding: 10px 16px; }
	.tu-for-grid, .tu-moments, .tu-feats { grid-template-columns: 1fr; }
	/* Homepage: two tiles across with just the icon and name, so the section stays short on a phone. */
	.tu-who .tu-for-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.tu-who .tu-for-tile { gap: 6px; padding: 16px; }
	.tu-who .tu-for-tile strong { font-size: 16px; }
	.tu-who .tu-for-tile > span:not(.tu-icon):not(.tu-more) { display: none; }
	.tu-phone-chip { left: 6px; }
	.tu-moment { padding: 22px 18px; }
	.tu-biz-plan-card { padding: 24px 18px; }
	.tu-callout { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.tu-for-tile, .tu-goal { transition: none; }
	.tu-for-tile:hover, .tu-for-tile:focus { transform: none; }
}
