/*
Theme Name: TrueBroker
Theme URI: https://truebroker.net
Author: TrueBroker
Description: Marketing site for TrueBroker, built in the "Bloc" design language. Block theme.
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 8.1
Version: 0.1.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: truebroker
*/

/* Tokens live in theme.json. This file carries the Bloc treatments that
   theme.json has no vocabulary for: hard shadows on arbitrary elements,
   the alternating tilt, stickers, the marquee, and the nav drawer. */

html {
	-webkit-text-size-adjust: 100%;
}

/* Fixed-size Bloc components carry a border, so their declared width has to
   include it, otherwise the tick renders 24px and swallows the final "r". */
.tb-logo__tick,
.tb-nav__burger,
.tb-phone__screen,
.tb-phone__notch,
.tb-phone__tab {
	box-sizing: border-box;
}

body {
	overflow-x: hidden;
}

/* ---------------------------------------------------------------- layout */

/* WordPress puts a block-gap margin between the header, main and footer.
   The hero has to butt straight up against the sticky nav, and the footer
   already carries its own 40px. */
.wp-site-blocks > main,
.wp-site-blocks > footer {
	margin-block-start: 0;
}

/* The design pins three different column widths. contentSize covers 1200;
   these two handle the legal and contact pages. */
.tb-column-legal > .wp-block-group.alignfull > :where(:not(.alignfull)),
.tb-column-legal.is-layout-constrained > :where(:not(.alignfull):not(.alignwide)) {
	max-width: 820px;
	margin-inline: auto;
}

.tb-column-contact.is-layout-constrained > :where(:not(.alignfull):not(.alignwide)) {
	max-width: 1000px;
	margin-inline: auto;
}

/* --------------------------------------------------------------- surfaces */

.tb-card {
	background: var(--wp--preset--color--white);
	border: var(--wp--custom--border--block) solid var(--wp--preset--color--ink);
	border-radius: 20px;
	box-shadow: 5px 5px 0 var(--wp--preset--color--ink);
}

.tb-card--feature {
	border-radius: var(--wp--custom--radius--card);
	padding: clamp(20px, 2.6vw, 26px);
}

/* Alternating tilt. Applied by pattern authors, killed under reduced motion. */
.tb-tilt-l { transform: rotate(-0.4deg); }
.tb-tilt-r { transform: rotate(0.4deg); }
.tb-tilt-l-lg { transform: rotate(-0.5deg); }

/* --------------------------------------------------------------- stickers */

.tb-sticker {
	display: inline-block;
	font-weight: 800;
	font-size: 11px;
	line-height: 1;
	padding: 6px 12px;
	border-radius: var(--wp--custom--radius--pill);
	white-space: nowrap;
}

.tb-sticker--lg {
	font-size: 13px;
	padding: 8px 14px;
	border: var(--wp--custom--border--block) solid var(--wp--preset--color--ink);
}

.tb-rot-n8 { transform: rotate(-8deg); }
.tb-rot-n6 { transform: rotate(-6deg); }
.tb-rot-n4 { transform: rotate(-4deg); }
.tb-rot-n2 { transform: rotate(-2deg); }
.tb-rot-p4 { transform: rotate(4deg); }
.tb-rot-p5 { transform: rotate(5deg); }
.tb-rot-p6 { transform: rotate(6deg); }
.tb-rot-p7 { transform: rotate(7deg); }

/* ----------------------------------------------------------------- kicker */

.tb-kicker {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted-paper);
	margin: 0;
}

.tb-meta {
	font-family: var(--wp--preset--font-family--mono);
	font-weight: 700;
	font-size: 10px;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin: 0;
}

/* ---------------------------------------------------------------- marquee */

.tb-ticker {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--lime);
	padding: 12px 0;
	overflow: hidden;
	white-space: nowrap;
	display: flex;
	border-bottom: var(--wp--custom--border--hero) solid var(--wp--preset--color--ink);
}

.tb-ticker__run {
	font-family: var(--wp--preset--font-family--mono);
	font-weight: 700;
	font-size: clamp(11px, 1.4vw, 13px);
	letter-spacing: 1px;
	padding-right: 50px;
	flex: none;
	animation: tb-ticker 26s linear infinite;
}

@keyframes tb-ticker {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

/* ------------------------------------------------------------ store links */

.tb-store {
	display: inline-flex;
	flex-direction: column;
	text-align: left;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
	padding: 12px clamp(20px, 3vw, 26px);
	border-radius: 16px;
	border: var(--wp--custom--border--block) solid var(--wp--preset--color--ink);
	box-shadow: 4px 4px 0 var(--wp--preset--color--lime);
	text-decoration: none;
	min-height: 44px;
	justify-content: center;
}

.tb-store:hover { color: var(--wp--preset--color--paper); }

/* Pre-launch state: same card, but nothing to click yet. */
.tb-store--soon { cursor: default; }

.tb-store__eyebrow {
	font-family: var(--wp--preset--font-family--mono);
	font-weight: 700;
	font-size: 9px;
	letter-spacing: 1px;
	color: var(--wp--preset--color--muted-ink);
}

.tb-store__name {
	font-weight: 800;
	font-size: clamp(17px, 2vw, 19px);
}

/* ------------------------------------------------------------------- logo */

.tb-logo {
	display: inline-flex;
	align-items: center;
	position: relative;
	width: fit-content;
	text-decoration: none;
	color: inherit;
}

.tb-logo__word {
	font-weight: 800;
	font-size: clamp(20px, 2.4vw, 22px);
	letter-spacing: -0.8px;
	line-height: 1;
}

.tb-logo__tick {
	position: absolute;
	/* Hangs off the top-right of the final "r". Per LOGO.md the overlap is
	   vertical (above cap height), so it must not sit on the letter. */
	top: -9px;
	right: -19px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--wp--preset--color--lime);
	border: 2px solid var(--wp--preset--color--ink);
	display: flex;
	align-items: center;
	justify-content: center;
	transform: rotate(8deg);
}

.tb-logo--footer .tb-logo__word { font-size: 24px; }
.tb-logo--footer .tb-logo__tick { right: -18px; }

/* -------------------------------------------------------------------- nav */

.tb-nav {
	position: sticky;
	top: 0;
	z-index: 20;
	background: var(--wp--preset--color--paper);
	border-bottom: var(--wp--custom--border--block) solid var(--wp--preset--color--ink);
}

.tb-nav__bar {
	max-width: 1200px;
	margin: 0 auto;
	padding: 13px var(--wp--custom--gutter);
	display: flex;
	align-items: center;
	gap: 20px;
}

.tb-nav__links {
	display: flex;
	gap: 8px;
	margin-left: auto;
	align-items: center;
}

.tb-nav__link {
	font-weight: 700;
	font-size: 14px;
	padding: 12px 10px;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.tb-nav__link:hover { color: var(--wp--preset--color--violet); }

.tb-nav__cta {
	font-weight: 800;
	font-size: 14px;
	background: var(--wp--preset--color--lime);
	color: var(--wp--preset--color--ink);
	padding: 12px 22px;
	border-radius: var(--wp--custom--radius--pill);
	border: var(--wp--custom--border--block) solid var(--wp--preset--color--ink);
	box-shadow: 3px 3px 0 var(--wp--preset--color--ink);
	margin-left: 12px;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.tb-nav__cta:hover { color: var(--wp--preset--color--ink); }

.tb-nav__burger {
	margin-left: auto;
	width: 48px;
	height: 48px;
	flex: none;
	border-radius: 14px;
	border: var(--wp--custom--border--block) solid var(--wp--preset--color--ink);
	background: var(--wp--preset--color--paper);
	box-shadow: 3px 3px 0 var(--wp--preset--color--ink);
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4.5px;
	cursor: pointer;
	padding: 0;
}

.tb-nav__burger span {
	width: 20px;
	height: 2.5px;
	border-radius: 2px;
	background: var(--wp--preset--color--ink);
	display: block;
}

.tb-nav__burger[aria-expanded="true"] { background: var(--wp--preset--color--lime); }

.tb-nav__drawer {
	border-top: var(--wp--custom--border--block) solid var(--wp--preset--color--ink);
	background: var(--wp--preset--color--paper);
	padding: 14px var(--wp--custom--gutter) 20px;
	display: none;
	flex-direction: column;
	gap: 10px;
}

.tb-nav__drawer[data-open="true"] { display: flex; }

.tb-nav__drawer-card {
	font-weight: 800;
	font-size: 17px;
	background: var(--wp--preset--color--white);
	border: var(--wp--custom--border--block) solid var(--wp--preset--color--ink);
	border-radius: 16px;
	padding: 16px 18px;
	box-shadow: 4px 4px 0 var(--wp--preset--color--ink);
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	min-height: 56px;
	box-sizing: border-box;
}

.tb-nav__drawer-card span { color: var(--wp--preset--color--violet); }

.tb-nav__drawer-quiet {
	font-weight: 700;
	font-size: 15px;
	color: var(--wp--preset--color--body-paper);
	padding: 12px 18px;
	text-decoration: none;
}

.tb-nav__drawer-cta {
	font-weight: 800;
	font-size: 17px;
	background: var(--wp--preset--color--lime);
	border: var(--wp--custom--border--block) solid var(--wp--preset--color--ink);
	border-radius: var(--wp--custom--radius--pill);
	padding: 17px 0;
	box-shadow: 4px 4px 0 var(--wp--preset--color--ink);
	text-align: center;
	margin-top: 4px;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

/* The prototype switches nav at exactly 860px via JS; a media query does the
   same job without shipping a resize listener. */
@media (max-width: 859px) {
	.tb-nav__links { display: none; }
	.tb-nav__burger { display: flex; }
}

/* ------------------------------------------------------------- phone mock */

.tb-phone-wrap {
	/* Must be allowed to shrink: at 320px the 318px screen plus the 9px bezel
	   either side is wider than the viewport, and `0 0 auto` would refuse to
	   give. The handoff calls for the mock to shrink below ~340px. */
	flex: 0 1 auto;
	min-width: 0;
	max-width: 100%;
	position: relative;
	margin: 20px auto 0;
}

.tb-phone-sticker {
	position: absolute;
	z-index: 3;
	font-weight: 800;
	font-size: 13px;
	padding: 8px 14px;
	border-radius: var(--wp--custom--radius--pill);
	border: var(--wp--custom--border--block) solid var(--wp--preset--color--ink);
	color: #fff;
}

.tb-phone-sticker--legit {
	top: 38px;
	left: max(-34px, -4vw);
	background: var(--wp--preset--color--legit);
	transform: rotate(-8deg);
}

.tb-phone-sticker--run {
	top: 170px;
	right: max(-30px, -3.5vw);
	background: var(--wp--preset--color--run);
	transform: rotate(7deg);
}

.tb-phone {
	background: #0a0a0c;
	border-radius: 44px;
	padding: 9px;
	box-shadow: 0 30px 60px rgba(10, 6, 30, 0.45);
	max-width: 100%;
	box-sizing: border-box;
}

.tb-phone__screen {
	width: 318px;
	max-width: 100%;
	height: 600px;
	border-radius: 36px;
	overflow: hidden;
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
	position: relative;
}

.tb-phone__notch {
	position: absolute;
	top: 9px;
	left: 50%;
	transform: translateX(-50%);
	width: 86px;
	height: 22px;
	background: #0a0a0c;
	border-radius: 14px;
	z-index: 3;
}

.tb-phone__head {
	background: var(--wp--preset--color--violet);
	color: var(--wp--preset--color--paper);
	padding: 44px 20px 16px;
}

.tb-phone__search {
	margin-top: 10px;
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--muted-paper);
	border-radius: 11px;
	padding: 10px 12px;
	font-weight: 600;
	font-size: 11px;
	box-shadow: 3px 3px 0 var(--wp--preset--color--ink);
}

.tb-phone__ticker {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--lime);
	padding: 6px 0;
	overflow: hidden;
	white-space: nowrap;
	font-family: var(--wp--preset--font-family--mono);
	font-weight: 700;
	font-size: 8px;
	letter-spacing: 1px;
	padding-left: 16px;
}

.tb-phone__list {
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.tb-phone__row {
	background: var(--wp--preset--color--white);
	border: 2px solid var(--wp--preset--color--ink);
	border-radius: 14px;
	padding: 10px 12px;
	display: flex;
	align-items: center;
	gap: 10px;
	box-shadow: 3px 3px 0 var(--wp--preset--color--ink);
}

.tb-phone__row--scam {
	background: var(--wp--preset--color--run);
	color: #fff;
}

.tb-phone__score {
	font-weight: 800;
	font-size: 26px;
	letter-spacing: -1.5px;
}

.tb-phone__name { font-weight: 800; font-size: 12px; }
.tb-phone__sub  { font-weight: 600; font-size: 8.5px; color: var(--wp--preset--color--muted-paper); }
.tb-phone__row--scam .tb-phone__sub { color: inherit; opacity: 0.85; }

.tb-phone__chip {
	font-weight: 800;
	font-size: 7px;
	padding: 3px 7px;
	border-radius: var(--wp--custom--radius--pill);
	white-space: nowrap;
}

.tb-phone__tabs {
	position: absolute;
	left: 50%;
	bottom: 12px;
	transform: translateX(-50%);
	background: var(--wp--preset--color--ink);
	border-radius: var(--wp--custom--radius--pill);
	padding: 6px;
	display: flex;
	gap: 3px;
}

.tb-phone__tab {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	color: var(--wp--preset--color--muted-ink);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
}

.tb-phone__tab--active {
	background: var(--wp--preset--color--lime);
	color: var(--wp--preset--color--ink);
	font-size: 13px;
}

.tb-phone__tab--alert { color: var(--wp--preset--color--run); }

/* ------------------------------------------------------------ legal pages */

.tb-shortversion {
	background: var(--wp--preset--color--lime);
	border: var(--wp--custom--border--block) solid var(--wp--preset--color--ink);
	border-radius: 18px;
	padding: 18px 22px;
	box-shadow: 4px 4px 0 var(--wp--preset--color--ink);
}

.tb-legal-section p { margin: 8px 0 0; }

.tb-legal-section ul {
	margin: 10px 0 0;
	padding-left: 20px;
}

.tb-legal-section li { margin-top: 4px; }

/* Who actually operates the site. Sits at the foot of every legal page. */
.tb-operator {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--muted-ink);
	border: var(--wp--custom--border--block) solid var(--wp--preset--color--ink);
	border-radius: 18px;
	padding: 20px 22px;
	margin-top: 40px;
	box-shadow: 4px 4px 0 var(--wp--preset--color--violet);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.9;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.tb-operator__label {
	color: var(--wp--preset--color--lime);
	font-weight: 700;
	letter-spacing: 2px;
	margin: 0 0 6px;
}

.tb-operator strong { color: var(--wp--preset--color--paper); font-weight: 700; }
.tb-operator a { color: var(--wp--preset--color--paper); text-decoration: none; }
.tb-operator a:hover { color: var(--wp--preset--color--lime); }

/* Legal-center index: the hub linking every policy. */
.tb-legal-index {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 12px;
	margin-top: 14px;
}

.tb-legal-index a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	background: var(--wp--preset--color--white);
	border: var(--wp--custom--border--block) solid var(--wp--preset--color--ink);
	border-radius: 16px;
	padding: 14px 18px;
	box-shadow: 4px 4px 0 var(--wp--preset--color--ink);
	font-weight: 800;
	font-size: 15px;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	min-height: 56px;
	box-sizing: border-box;
}

.tb-legal-index a:hover { background: var(--wp--preset--color--lime); color: var(--wp--preset--color--ink); }
.tb-legal-index span { color: var(--wp--preset--color--violet); }

/* Severity chips on the red-notices page, same scale as the app. */
.tb-severity {
	display: inline-block;
	font-weight: 800;
	font-size: 11px;
	line-height: 1;
	padding: 6px 12px;
	border-radius: var(--wp--custom--radius--pill);
	border: 2px solid var(--wp--preset--color--ink);
	margin-right: 8px;
}

.tb-severity--scam     { background: var(--wp--preset--color--run); color: #fff; }
.tb-severity--phishing { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--lime); }
.tb-severity--watch    { background: var(--wp--preset--color--okish); color: var(--wp--preset--color--ink); }
.tb-severity--resolved { background: var(--wp--preset--color--legit); color: #fff; }

.tb-legal-body { color: var(--wp--preset--color--legal-body); line-height: 1.7; }

/* ---------------------------------------------------------------- contact */

.tb-contact {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(26px, 3.5vw, 44px);
	align-items: flex-start;
}

.tb-contact__intro { flex: 1 1 300px; min-width: 0; }
.tb-contact__form  { flex: 1.1 1 300px; min-width: 0; }

.tb-legal-title { letter-spacing: var(--wp--custom--tracking--legal); line-height: 1; }

.tb-mailcards {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 28px;
}

.tb-mailcard {
	background: var(--wp--preset--color--white);
	border: var(--wp--custom--border--block) solid var(--wp--preset--color--ink);
	border-radius: 16px;
	padding: 14px 18px;
	box-shadow: 4px 4px 0 var(--wp--preset--color--ink);
}

.tb-mailcard--red    { box-shadow: 4px 4px 0 var(--wp--preset--color--run); }
.tb-mailcard--violet { box-shadow: 4px 4px 0 var(--wp--preset--color--violet); }

.tb-mailcard__label { font-family: var(--wp--preset--font-family--mono); font-weight: 700; font-size: 10px; letter-spacing: 1px; margin: 0; }
.tb-mailcard__addr  { font-weight: 800; font-size: 15px; margin: 2px 0 0; }

.tb-form-card {
	background: var(--wp--preset--color--violet);
	border: var(--wp--custom--border--hero) solid var(--wp--preset--color--ink);
	border-radius: var(--wp--custom--radius--cardLarge);
	padding: clamp(22px, 3vw, 32px);
	box-shadow: 7px 7px 0 var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
}

.tb-form__topics {
	display: flex;
	gap: 8px;
	margin-top: 16px;
	flex-wrap: wrap;
}

.tb-form__topic {
	font-weight: 800;
	font-size: 11px;
	padding: 10px 14px;
	border-radius: var(--wp--custom--radius--pill);
	border: 2px solid var(--wp--preset--color--ink);
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
	cursor: pointer;
	min-height: 36px;
}

.tb-form__topic input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.tb-form__topic:has(input:checked) {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--lime);
}

.tb-form__topic:has(input:focus-visible) {
	outline: 3px solid var(--wp--preset--color--lime);
	outline-offset: 2px;
}

.tb-form__row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}

.tb-form input[type="text"],
.tb-form input[type="email"],
.tb-form textarea {
	flex: 1 1 150px;
	min-width: 0;
	box-sizing: border-box;
	border: var(--wp--custom--border--block) solid var(--wp--preset--color--ink);
	border-radius: var(--wp--custom--radius--input);
	padding: 14px 16px;
	/* 15px keeps iOS from zooming the viewport on focus. */
	font: 600 15px var(--wp--preset--font-family--display);
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
}

.tb-form textarea {
	width: 100%;
	margin-top: 10px;
	resize: vertical;
	font-size: 14px;
}

.tb-form input:focus-visible,
.tb-form textarea:focus-visible {
	outline: 3px solid var(--wp--preset--color--lime);
	outline-offset: 2px;
}

.tb-form__send {
	display: block;
	width: 100%;
	margin-top: 14px;
	text-align: center;
	font-weight: 800;
	font-size: 15px;
	background: var(--wp--preset--color--lime);
	color: var(--wp--preset--color--ink);
	padding: 16px 0;
	border-radius: var(--wp--custom--radius--pill);
	border: var(--wp--custom--border--block) solid var(--wp--preset--color--ink);
	box-shadow: 4px 4px 0 var(--wp--preset--color--ink);
	cursor: pointer;
	font-family: var(--wp--preset--font-family--display);
}

.tb-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.tb-form__error {
	background: var(--wp--preset--color--run);
	color: #fff;
	border: 2.5px solid var(--wp--preset--color--ink);
	border-radius: 14px;
	padding: 12px 16px;
	margin-bottom: 14px;
	font-weight: 700;
	font-size: 14px;
}

.tb-form__sent { text-align: center; padding: 40px 0; }
.tb-form__sent-tick { font-weight: 800; font-size: 56px; color: var(--wp--preset--color--lime); line-height: 1; }

/* ------------------------------------------------------------------ hero */

.tb-hero-wrap {
	border-bottom: var(--wp--custom--border--hero) solid var(--wp--preset--color--ink);
	/* Core gives any group with a background 1.25em/2.375em of padding.
	   The inner .tb-hero owns all of this hero's spacing. */
	padding: 0 !important;
}

.tb-stats-band {
	border-top: var(--wp--custom--border--hero) solid var(--wp--preset--color--ink);
	border-bottom: var(--wp--custom--border--hero) solid var(--wp--preset--color--ink);
}

.tb-hero {
	max-width: 1200px;
	margin: 0 auto;
	padding: clamp(44px, 6vw, 72px) var(--wp--custom--gutter) 0;
	display: flex;
	flex-wrap: wrap;
	gap: clamp(26px, 4vw, 48px);
	align-items: flex-start;
	justify-content: center;
}

.tb-hero__text {
	flex: 1 1 340px;
	min-width: 0;
	padding-bottom: clamp(40px, 6vw, 72px);
}

.tb-hero__text > * { margin-block: 0; }
.tb-hero__text > h1 { margin-top: 26px; }
.tb-hero__lead { margin-top: 22px !important; max-width: 480px; text-wrap: pretty; }
.tb-hero__micro { margin-top: 18px !important; }

.tb-hero__badge {
	display: inline-block;
	font-weight: 800;
	font-size: clamp(10px, 1.2vw, 11px);
	background: var(--wp--preset--color--lime);
	color: var(--wp--preset--color--ink);
	padding: 7px 14px;
	border-radius: var(--wp--custom--radius--pill);
	border: 2px solid var(--wp--preset--color--ink);
	transform: rotate(-2deg);
}

.tb-stores {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 34px;
	scroll-margin-top: 84px;
}

/* --------------------------------------------------------------- sections */

/* Anchor targets sit under an 84px sticky nav, the same offset the prototype
   subtracts in its scroll handler. */
.tb-section {
	scroll-margin-top: 84px;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: var(--wp--custom--gutter);
	box-sizing: border-box;
}

/* The bands break out of the column; their inner content re-establishes it. */
.tb-stats-band > .tb-grid {
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: var(--wp--custom--gutter);
	box-sizing: border-box;
}

.tb-grid {
	display: grid;
	gap: 16px;
	margin-top: 36px;
}

/* WP's flow layout puts margin-block on adjacent siblings, which fights the
   grid gap. Grid owns the spacing here. */
.tb-grid > * { margin-block: 0 !important; }

.tb-grid--verdict  { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.tb-grid--features { grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 18px; margin-top: 24px; }
.tb-grid--quotes   { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 24px; }
.tb-grid--stats    { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 22px 18px; }

.tb-verdict-card {
	background: var(--wp--preset--color--white);
	border: var(--wp--custom--border--block) solid var(--wp--preset--color--ink);
	border-radius: 20px;
	padding: 22px 18px;
	box-shadow: 5px 5px 0 var(--wp--preset--color--ink);
	text-align: center;
}

.tb-verdict-card--run  { background: var(--wp--preset--color--run); color: #fff; }
.tb-verdict-card--scam { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--run); box-shadow: 5px 5px 0 var(--wp--preset--color--run); }

.tb-verdict-card__n {
	font-weight: 800;
	font-size: clamp(38px, 5.2vw, 52px);
	letter-spacing: var(--wp--custom--tracking--numeral);
	line-height: 1;
}

.tb-verdict-card__note { font-weight: 600; font-size: 12px; margin: 12px 0 0; color: var(--wp--preset--color--muted-paper); }
.tb-verdict-card--run .tb-verdict-card__note  { color: inherit; opacity: 0.85; }
.tb-verdict-card--scam .tb-verdict-card__note { color: var(--wp--preset--color--muted-ink); }

.tb-stat { text-align: center; }
.tb-stat__n {
	font-weight: 800;
	font-size: clamp(38px, 5.2vw, 52px);
	letter-spacing: var(--wp--custom--tracking--numeral);
	line-height: 1;
}
.tb-stat__label { margin-top: 4px !important; color: var(--wp--preset--color--muted-ink); }

.tb-quote {
	background: var(--wp--preset--color--white);
	border: var(--wp--custom--border--block) solid var(--wp--preset--color--ink);
	border-radius: 20px;
	padding: 22px;
	box-shadow: 5px 5px 0 var(--wp--preset--color--ink);
}

.tb-quote p { font-weight: 600; font-size: clamp(13.5px, 1.7vw, 15px); line-height: 1.5; margin: 0; }
.tb-quote__by { font-family: var(--wp--preset--font-family--mono); font-weight: 700; font-size: 11px; color: var(--wp--preset--color--muted-paper); margin: 14px 0 0; }

/* ------------------------------------------------------------- CTA block */

.tb-cta {
	background: var(--wp--preset--color--violet);
	color: var(--wp--preset--color--paper);
	border: var(--wp--custom--border--hero) solid var(--wp--preset--color--ink);
	border-radius: 32px;
	padding: clamp(30px, 5vw, 56px) clamp(22px, 4vw, 56px);
	box-shadow: 8px 8px 0 var(--wp--preset--color--ink);
	text-align: center;
	position: relative;
}

.tb-cta__sticker {
	position: absolute;
	font-weight: 800;
	font-size: 12px;
	padding: 7px 14px;
	border-radius: var(--wp--custom--radius--pill);
	border: var(--wp--custom--border--block) solid var(--wp--preset--color--ink);
}

.tb-cta__sticker--free {
	top: -16px;
	left: clamp(16px, 5vw, 60px);
	background: var(--wp--preset--color--lime);
	color: var(--wp--preset--color--ink);
	transform: rotate(-4deg);
}

.tb-cta__sticker--flagged {
	top: -14px;
	right: clamp(14px, 6vw, 80px);
	background: var(--wp--preset--color--run);
	color: #fff;
	transform: rotate(5deg);
}

.tb-cta h2 {
	font-size: clamp(27px, 4.6vw, 48px);
	line-height: 1.03;
	margin: 0;
}

.tb-cta .tb-stores { justify-content: center; margin-top: 32px; }

/* --------------------------------------------------------- partner strip */

.tb-partner-strip {
	background: var(--wp--preset--color--white);
	border: var(--wp--custom--border--block) dashed var(--wp--preset--color--violet);
	border-radius: 18px;
	padding: 16px 20px;
	font-family: var(--wp--preset--font-family--mono);
	font-weight: 600;
	font-size: clamp(10px, 1.2vw, 12px);
	line-height: 1.6;
	color: var(--wp--preset--color--muted-paper);
	text-align: center;
}

/* ----------------------------------------------------------------- footer */

.tb-footer__cols {
	max-width: 1200px;
	margin: 0 auto;
	padding: clamp(40px, 5vw, 56px) var(--wp--custom--gutter) 40px;
	display: flex;
	flex-wrap: wrap;
	gap: clamp(28px, 4vw, 60px);
}

.tb-footer__brand { flex: 1 1 260px; }
.tb-footer__col   { flex: 1 1 140px; }

.tb-footer__col-links {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 14px;
	font-weight: 700;
	font-size: 15px;
}

.tb-footer__col-links a {
	color: var(--wp--preset--color--paper);
	text-decoration: none;
}

.tb-footer__col-links a:hover { color: var(--wp--preset--color--lime); }

.tb-footer__base {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 var(--wp--custom--gutter) 32px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: space-between;
	font-family: var(--wp--preset--font-family--mono);
	font-weight: 600;
	font-size: 10.5px;
	letter-spacing: 1px;
	color: var(--wp--preset--color--muted-ink);
}

/* ------------------------------------------------------- touch targets */

/* The handoff sets a 44px floor for tappable things. These three sit well
   under it, so grow the hit area with padding and pull it back with an equal
   negative margin: the target reaches 44px without moving a single pixel. */
.tb-logo {
	padding-block: 12px;
	margin-block: -12px;
}

.tb-mailcard__addr a {
	display: block;
	padding-block: 13px;
	margin-block: -13px;
}

/* Footer links are stacked, so overlapping hit areas would misroute taps.
   Give them real height instead, and only where a finger is involved. */
@media (max-width: 859px) {
	.tb-footer__col-links {
		gap: 2px;
	}

	.tb-footer__col-links a {
		display: flex;
		align-items: center;
		min-height: 44px;
	}
}

/* ------------------------------------------------------------ motion + a11y */

.tb-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	background: var(--wp--preset--color--lime);
	color: var(--wp--preset--color--ink);
	padding: 12px 20px;
	font-weight: 800;
	border: 2.5px solid var(--wp--preset--color--ink);
}

.tb-skip-link:focus {
	left: 8px;
	top: 8px;
}

@media (prefers-reduced-motion: reduce) {
	.tb-ticker__run { animation: none; }

	.tb-tilt-l,
	.tb-tilt-r,
	.tb-tilt-l-lg,
	.tb-sticker,
	.tb-phone-sticker,
	.tb-logo__tick,
	[class*="tb-rot-"] {
		transform: none;
	}
}
