/*
 * TradeFlow — design system.
 *
 * The values mirror the source site (tradeflow-nz.netlify.app): deep green
 * surfaces, mint accents, 24px cards, 32px pricing panels, pill buttons and
 * a Geist-style type scale.
 */

/* -------------------------------------------------------------------------
 * Tokens
 * ---------------------------------------------------------------------- */

:root {
	--tf-brand-deep: #061914;
	--tf-brand-band: #0b2a23;
	--tf-brand: #0b725a;
	--tf-brand-strong: #168066;
	--tf-brand-meta: #14765f;
	--tf-brand-nav: #365a51;
	--tf-mint: #82e2c5;
	--tf-mint-ink: #082019;
	--tf-ink: #0a0a0a;
	--tf-heading: #10231f;
	--tf-muted: #617871;
	--tf-muted-strong: #4d6861;
	--tf-surface-soft: #f7f9f8;
	--tf-field: #f3f6f5;
	--tf-border: rgba(16, 35, 31, 0.1);
	--tf-border-brand: rgba(22, 128, 102, 0.12);
	--tf-radius-card: 24px;
	--tf-radius-panel: 32px;
	--tf-radius-pill: 999px;
	--tf-container: 1376px;
	--tf-section-pad: clamp(4rem, 8vw, 8rem);
}

/* -------------------------------------------------------------------------
 * Base
 * ---------------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	color: var(--tf-ink);
	background-color: #fff;
	font-family: var(--wp--preset--font-family--geist);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

:lang(zh) body {
	font-family: var(--wp--preset--font-family--sans);
}

img {
	max-width: 100%;
	height: auto;
}

h1,
h2,
h3,
h4 {
	color: var(--tf-heading);
	font-weight: 600;
	letter-spacing: -0.04em;
	line-height: 1.1;
	margin: 0;
}

p {
	margin: 0;
}

.tf-main {
	display: block;
}

.tf-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* -------------------------------------------------------------------------
 * Layout
 * ---------------------------------------------------------------------- */

.tf-container {
	width: 100%;
	max-width: var(--tf-container);
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.tf-section {
	padding-block: var(--tf-section-pad);
	background-color: #fff;
}

.tf-section--soft {
	background-color: var(--tf-surface-soft);
}

.tf-section--band {
	background-color: var(--tf-brand-band);
	color: #fff;
}

.tf-section--deep {
	background-color: var(--tf-brand-deep);
	color: #fff;
}

.tf-section--tight {
	padding-block: clamp(2.5rem, 5vw, 4rem);
}

/* -------------------------------------------------------------------------
 * Header
 * ---------------------------------------------------------------------- */

.tf-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background-color: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--tf-border);
}

.tf-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 69px;
}

.tf-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--tf-ink);
	text-decoration: none;
}

.tf-brand__mark {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background-color: var(--tf-brand-deep);
	color: var(--tf-mint);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.tf-brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.tf-brand__text strong {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.tf-brand__text small {
	font-size: 10px;
	letter-spacing: 0.14em;
	color: var(--tf-muted-strong);
}

.tf-nav {
	display: flex;
	align-items: center;
	gap: 2rem;
	/* Push the navigation to the right edge, next to the language switcher. */
	margin-left: auto;
}

.tf-nav a {
	color: var(--tf-brand-nav);
	font-size: 14px;
	text-decoration: none;
	transition: color 0.15s ease;
}

.tf-nav a:hover,
.tf-nav a:focus-visible {
	color: var(--tf-brand);
}

.tf-nav a[aria-current="page"] {
	color: var(--tf-brand-strong);
}

/* Services dropdown in the primary navigation. */
.tf-nav__item {
	position: relative;
}

.tf-nav__item > a {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
}

.tf-nav__chevron {
	width: 14px;
	height: 14px;
	transition: transform 0.18s ease;
}

.tf-nav__item:hover .tf-nav__chevron,
.tf-nav__item:focus-within .tf-nav__chevron {
	transform: rotate(180deg);
}

.tf-nav__sub-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--tf-brand-nav);
	cursor: pointer;
}

.tf-nav__sub-toggle svg {
	width: 16px;
	height: 16px;
	transition: transform 0.18s ease;
}

.tf-nav__sub {
	position: absolute;
	top: calc(100% + 0.6rem);
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
	min-width: 190px;
	display: none;
	flex-direction: column;
	padding: 0.5rem;
	background-color: #fff;
	border: 1px solid var(--tf-border);
	border-radius: 14px;
	box-shadow: 0 18px 40px -30px rgba(6, 25, 20, 0.5);
}

/* Invisible bridge so the gap between the item and the panel keeps the
 * dropdown open while the pointer travels between them. */
.tf-nav__item::after {
	content: "";
	position: absolute;
	top: 100%;
	left: -14px;
	right: -14px;
	height: 0.75rem;
}

.tf-nav__item:hover .tf-nav__sub,
.tf-nav__item:focus-within .tf-nav__sub,
.tf-nav__item.is-open .tf-nav__sub {
	display: flex;
}

.tf-nav__sub a {
	padding: 0.55rem 0.75rem;
	border-radius: 9px;
	white-space: nowrap;
}

.tf-nav__sub a:hover,
.tf-nav__sub a:focus-visible {
	background-color: var(--tf-surface-soft);
}

.tf-header__aside {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.tf-lang {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 34px;
	padding: 0 0.7rem;
	border: 1px solid var(--tf-border);
	border-radius: var(--tf-radius-pill);
	color: var(--tf-brand-nav);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.tf-lang:hover,
.tf-lang:focus-visible {
	border-color: var(--tf-brand-strong);
	color: var(--tf-brand);
}

.tf-lang.is-current {
	border-color: var(--tf-brand-strong);
	background-color: var(--tf-surface-soft);
	color: var(--tf-brand-strong);
}

.tf-nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--tf-border);
	border-radius: 10px;
	background-color: #fff;
	color: var(--tf-heading);
	cursor: pointer;
}

.tf-nav-toggle svg {
	width: 20px;
	height: 20px;
}

@media (max-width: 1023px) {
	.tf-nav-toggle {
		display: inline-flex;
	}

	.tf-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 0.75rem clamp(1.25rem, 4vw, 2rem) 1.5rem;
		background-color: #fff;
		border-bottom: 1px solid var(--tf-border);
		box-shadow: 0 18px 40px -30px rgba(6, 25, 20, 0.5);
	}

	.tf-nav.is-open {
		display: flex;
	}

	.tf-nav a {
		display: block;
		padding: 0.85rem 0;
		font-size: 15px;
	}

	/* Mobile: the parent row keeps the link and a chevron toggle side by side. */
	.tf-nav__item {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
	}

	.tf-nav__item::after {
		display: none;
	}

	.tf-nav__item > a {
		flex: 1 1 auto;
	}

	.tf-nav__sub-toggle {
		display: inline-flex;
	}

	.tf-nav__item.is-open .tf-nav__sub-toggle svg {
		transform: rotate(180deg);
	}

	.tf-nav__sub {
		position: static;
		transform: none;
		flex: 1 0 100%;
		min-width: 0;
		padding: 0 0 0.25rem 1rem;
		border: 0;
		border-radius: 0;
		box-shadow: none;
	}

	.tf-nav__item:hover .tf-nav__sub,
	.tf-nav__item:focus-within .tf-nav__sub {
		display: none;
	}

	.tf-nav__item.is-open .tf-nav__sub {
		display: flex;
	}

	.tf-nav__sub a {
		padding: 0.6rem 0;
		font-size: 14px;
		color: var(--tf-muted-strong);
	}
}

/* -------------------------------------------------------------------------
 * Buttons
 * ---------------------------------------------------------------------- */

.tf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	height: 50px;
	padding: 0 1.5rem;
	border: 1px solid transparent;
	border-radius: var(--tf-radius-pill);
	background-color: var(--tf-mint);
	color: var(--tf-mint-ink);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.tf-btn:hover,
.tf-btn:focus-visible {
	background-color: #6fd7b6;
	color: var(--tf-mint-ink);
	transform: translateY(-1px);
}

.tf-btn:focus-visible {
	outline: 3px solid rgba(22, 128, 102, 0.35);
	outline-offset: 3px;
}

.tf-btn--ghost {
	background-color: transparent;
	border-color: rgba(255, 255, 255, 0.25);
	color: #fff;
}

.tf-btn--ghost:hover,
.tf-btn--ghost:focus-visible {
	background-color: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.tf-btn--brand {
	background-color: var(--tf-brand);
	color: #fff;
}

.tf-btn--brand:hover,
.tf-btn--brand:focus-visible {
	background-color: var(--tf-brand-strong);
	color: #fff;
}

.tf-btn--outline {
	background-color: var(--tf-brand-deep);
	border-color: var(--tf-brand-deep);
	color: #fff;
}

.tf-btn--outline:hover,
.tf-btn--outline:focus-visible {
	background-color: var(--tf-brand-band);
	border-color: var(--tf-brand-band);
	color: #fff;
}

.tf-btn--block {
	width: 100%;
}

/* -------------------------------------------------------------------------
 * Hero
 * ---------------------------------------------------------------------- */

.tf-hero {
	background-color: var(--tf-brand-deep);
	color: #fff;
	padding-block: clamp(3.5rem, 7vw, 6.5rem) clamp(3rem, 6vw, 5rem);
}

.tf-hero__inner {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	align-items: center;
	gap: clamp(2rem, 5vw, 4rem);
}

.tf-hero__label {
	margin-bottom: 1.5rem;
	color: rgba(255, 255, 255, 0.7);
	font-size: 14px;
	line-height: 1.6;
	max-width: 34ch;
}

.tf-hero__title {
	color: #fff;
	font-size: clamp(2.5rem, 5.2vw, 4.5rem);
	font-weight: 600;
	letter-spacing: -0.055em;
	line-height: 1.01;
	max-width: 18ch;
}

.tf-hero__lead {
	margin-top: 1.75rem;
	max-width: 36rem;
	color: rgba(255, 255, 255, 0.7);
	font-size: 1.25rem;
	line-height: 1.6;
}

.tf-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 2.25rem;
}

.tf-hero__points {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.75rem;
	margin: 2.5rem 0 0;
	padding: 0;
	list-style: none;
	color: rgba(255, 255, 255, 0.6);
	font-size: 14px;
}

.tf-hero__points li {
	position: relative;
	padding-left: 1.1rem;
}

.tf-hero__points li::before {
	content: "";
	position: absolute;
	top: 0.62em;
	left: 0;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: var(--tf-mint);
}

.tf-hero__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--tf-radius-card);
}

.tf-hero__caption {
	margin-top: 0.9rem;
	color: rgba(255, 255, 255, 0.55);
	font-size: 13px;
}

/* Interior pages: the hero has no media, so the copy takes the full width. */
.tf-hero--page .tf-hero__inner {
	grid-template-columns: minmax(0, 1fr);
}

.tf-hero--page .tf-hero__title {
	max-width: 24ch;
}

/* Home: narrower copy on the left, carousel on the right. */
.tf-hero--home .tf-hero__inner {
	grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
}

.tf-hero--home .tf-hero__title {
	max-width: 13ch;
	font-size: clamp(2.15rem, 3.8vw, 3.5rem);
	line-height: 1.08;
}

.tf-hero--home .tf-hero__lead,
.tf-hero--home .tf-hero__intro {
	max-width: 30rem;
}

.tf-hero--home .tf-hero__media {
	min-width: 0;
}

/* Service detail pages: image on the left, copy on the right. */
.tf-hero--service .tf-hero__inner {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
}

.tf-hero--service .tf-hero__title {
	max-width: 16ch;
}

.tf-hero--service .tf-hero__media {
	min-width: 0;
}

.tf-hero--service .tf-figure {
	max-width: none;
	margin: 0;
}

.tf-hero--service .tf-figure img {
	border-color: rgba(255, 255, 255, 0.16);
}

.tf-hero--service .tf-figure figcaption {
	color: rgba(255, 255, 255, 0.6);
}

/* Team member cards on the About page. */
.tf-member {
	gap: 0;
}

.tf-member__role {
	color: var(--tf-brand-strong);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

:lang(zh) .tf-member__role {
	letter-spacing: 0.04em;
	text-transform: none;
}

.tf-member__name {
	margin-top: 0.9rem;
	font-size: 24px;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.25;
	color: var(--tf-heading);
}

.tf-member__org {
	margin-top: 0.4rem;
	color: var(--tf-brand);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.6;
}

.tf-member .tf-card__body:first-of-type {
	margin-top: 1.25rem;
}

.tf-member__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
}

.tf-member__tags li {
	padding: 0.35rem 0.7rem;
	border: 1px solid var(--tf-border);
	border-radius: var(--tf-radius-pill);
	background-color: var(--tf-surface-soft);
	color: var(--tf-muted-strong);
	font-size: 12px;
	line-height: 1.5;
}

/* Price line inside a service card. */
.tf-service__price {
	margin-top: 0.35rem;
	color: var(--tf-brand);
	font-size: 15px;
	font-weight: 600;
}

.tf-card--service .tf-card__title {
	margin-top: 0.5rem;
}

.tf-card--service .tf-card__list {
	margin-top: 1rem;
}

/* Service card internals. */
.tf-card__subtitle {
	margin-top: 0.35rem;
	color: var(--tf-heading);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
}

.tf-card__label {
	margin-top: 1.5rem;
	color: var(--tf-brand-strong);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

:lang(zh) .tf-card__label {
	letter-spacing: 0.04em;
	text-transform: none;
}

.tf-card__note {
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--tf-border);
	color: var(--tf-muted-strong);
	font-size: 13px;
	line-height: 1.7;
}

.tf-card__cta {
	margin-top: auto;
	padding-top: 1.5rem;
}

/* Hero intro paragraphs, used by the services page. */
.tf-hero__intro {
	margin-top: 1rem;
	max-width: 60ch;
	color: rgba(255, 255, 255, 0.7);
	font-size: 1rem;
	line-height: 1.75;
}

.tf-hero--page .tf-hero__lead + .tf-hero__intro {
	margin-top: 1.25rem;
}

/* Four-step process. */
.tf-steps--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1023px) {
	.tf-steps--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.tf-steps--4 {
		grid-template-columns: 1fr;
	}
}

/* Standalone bullet list, with the same marker as the card lists. */
.tf-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.7rem;
	color: var(--tf-muted-strong);
	font-size: 15px;
	line-height: 1.7;
}

.tf-list li {
	position: relative;
	padding-left: 1.5rem;
}

.tf-list li::before {
	content: "";
	position: absolute;
	top: 0.6em;
	left: 0;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: var(--tf-brand-strong);
}

.tf-card--list {
	padding: 28px;
	margin-top: clamp(2rem, 4vw, 3rem);
}

.tf-card--list .tf-list {
	margin-top: 0;
}

/* Note under a list or step set. */
.tf-note {
	margin-top: 1.5rem;
	max-width: 62ch;
	color: var(--tf-muted-strong);
	font-size: 13px;
	line-height: 1.7;
}

/* Steps that wrap when there are more than four. */
.tf-steps--auto {
	grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
}

/* Decision table. */
.tf-table-wrap {
	margin-top: clamp(2rem, 4vw, 3rem);
	overflow-x: auto;
	border: 1px solid var(--tf-border);
	border-radius: var(--tf-radius-card);
	background-color: #fff;
}

.tf-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.tf-table th,
.tf-table td {
	padding: 1rem 1.25rem;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--tf-border);
}

.tf-table thead th {
	background-color: var(--tf-surface-soft);
	color: var(--tf-muted-strong);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.tf-table tbody tr:last-child td {
	border-bottom: 0;
}

.tf-table td:last-child {
	color: var(--tf-brand);
	font-weight: 600;
}

/* FAQ accordion. */
.tf-faq {
	max-width: 860px;
	margin-top: clamp(2rem, 4vw, 3rem);
}

.tf-faq details {
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--tf-border);
}

.tf-faq summary {
	position: relative;
	padding-right: 2rem;
	color: var(--tf-heading);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.6;
	cursor: pointer;
	list-style: none;
}

.tf-faq summary::-webkit-details-marker {
	display: none;
}

.tf-faq summary::after {
	content: '+';
	position: absolute;
	top: 0;
	right: 0;
	color: var(--tf-brand);
	font-weight: 500;
}

.tf-faq details[open] summary::after {
	content: '–';
}

.tf-faq details p {
	margin-top: 0.85rem;
	color: var(--tf-muted);
	font-size: 14px;
	line-height: 1.8;
}


@media (max-width: 1023px) {
	.tf-hero__inner {
		grid-template-columns: 1fr;
	}

	.tf-hero__title {
		max-width: none;
	}

	/* The home hero stacks the copy above the carousel. */
	.tf-hero--home .tf-hero__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.tf-hero--home .tf-hero__title {
		max-width: 20ch;
	}

	.tf-hero--home .tf-hero__lead,
	.tf-hero--home .tf-hero__intro {
		max-width: 100%;
	}

	/* Service pages stack the image above the copy. */
	.tf-hero--service .tf-hero__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.tf-hero--service .tf-hero__title {
		max-width: 22ch;
	}
}

/* -------------------------------------------------------------------------
 * Section headings
 * ---------------------------------------------------------------------- */

.tf-eyebrow {
	display: block;
	margin-bottom: 1rem;
	color: var(--tf-brand-strong);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

:lang(zh) .tf-eyebrow {
	letter-spacing: 0.06em;
	text-transform: none;
}

.tf-title {
	font-size: clamp(1.9rem, 3.4vw, 2.75rem);
	letter-spacing: -0.045em;
	max-width: 26ch;
}

.tf-lead {
	margin-top: 1.25rem;
	max-width: 62ch;
	color: var(--tf-muted);
	font-size: 1.0625rem;
	line-height: 1.75;
}

.tf-center {
	text-align: center;
}

.tf-center .tf-title,
.tf-center .tf-lead {
	margin-inline: auto;
}

/* Space between a heading block and the grid below it. */
.tf-grid--spaced,
.tf-heading + .tf-plans,
.tf-heading + .tf-steps,
.tf-heading + .tf-trades {
	margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.tf-section--band .tf-title,
.tf-section--deep .tf-title {
	color: #fff;
}

.tf-section--band .tf-lead,
.tf-section--deep .tf-lead {
	color: rgba(255, 255, 255, 0.72);
}

.tf-section--band .tf-eyebrow,
.tf-section--deep .tf-eyebrow {
	color: var(--tf-mint);
}

/* -------------------------------------------------------------------------
 * Trades
 * ---------------------------------------------------------------------- */

.tf-trades {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 1.75rem 0 0;
	padding: 0;
	list-style: none;
}

.tf-trade {
	display: inline-flex;
	align-items: center;
	padding: 0.45rem 1rem;
	border: 1px solid var(--tf-border-brand);
	border-radius: var(--tf-radius-pill);
	background-color: #fff;
	color: var(--tf-muted-strong);
	font-size: 14px;
}

/* -------------------------------------------------------------------------
 * Cards
 * ---------------------------------------------------------------------- */

.tf-grid {
	display: grid;
	gap: 1.5rem;
}

.tf-grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tf-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tf-grid--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tf-card {
	display: flex;
	flex-direction: column;
	padding: 28px;
	border: 1px solid var(--tf-border);
	border-radius: var(--tf-radius-card);
	background-color: #fff;
}

.tf-card__meta {
	color: var(--tf-brand-meta);
	font-size: 16px;
	line-height: 1.5;
}

.tf-card__title {
	margin-top: 2rem;
	font-size: 20px;
	line-height: 1.4;
}

.tf-card__body {
	margin-top: 0.75rem;
	color: var(--tf-muted);
	font-size: 14px;
	line-height: 1.7;
}

.tf-card__list {
	margin: 1.25rem 0 0;
	padding: 0;
	list-style: none;
	color: var(--tf-muted-strong);
	font-size: 14px;
	line-height: 1.7;
}

.tf-card__list li {
	position: relative;
	padding-left: 1.4rem;
	margin-bottom: 0.5rem;
}

.tf-card__list li::before {
	content: "";
	position: absolute;
	top: 0.62em;
	left: 0;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: var(--tf-brand-strong);
}

@media (max-width: 1023px) {
	.tf-grid--3,
	.tf-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.tf-grid--2,
	.tf-grid--3,
	.tf-grid--4 {
		grid-template-columns: 1fr;
	}
}

/* -------------------------------------------------------------------------
 * Pricing
 * ---------------------------------------------------------------------- */

.tf-plans {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
	align-items: start;
}

.tf-plan {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 32px;
	border: 1px solid var(--tf-border-brand);
	border-radius: var(--tf-radius-panel);
	background-color: var(--tf-surface-soft);
}

.tf-plan--featured {
	border-color: var(--tf-brand);
	box-shadow: 0 18px 48px -32px rgba(6, 25, 20, 0.35);
}

.tf-plan__badge {
	position: absolute;
	top: 24px;
	right: 24px;
	padding: 0.3rem 0.75rem;
	border-radius: var(--tf-radius-pill);
	background-color: var(--tf-mint);
	color: var(--tf-mint-ink);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

:lang(zh) .tf-plan__badge {
	letter-spacing: 0.02em;
	text-transform: none;
}

.tf-plan__name {
	color: var(--tf-brand-strong);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

:lang(zh) .tf-plan__name {
	letter-spacing: 0.04em;
	text-transform: none;
}

.tf-plan__price {
	margin-top: 1.25rem;
	color: var(--tf-heading);
	font-size: 48px;
	font-weight: 600;
	letter-spacing: -0.05em;
	line-height: 1.1;
}

.tf-plan__price small {
	margin-left: 0.35rem;
	color: var(--tf-muted);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0;
}

.tf-plan__setup {
	margin-top: 0.35rem;
	color: var(--tf-muted-strong);
	font-size: 13px;
}

.tf-plan__summary {
	margin-top: 1.5rem;
	color: var(--tf-muted);
	font-size: 14px;
	line-height: 1.7;
}

.tf-plan__features {
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
	color: var(--tf-muted-strong);
	font-size: 14px;
	line-height: 1.7;
}

.tf-plan__features li {
	position: relative;
	padding-left: 1.6rem;
	margin-bottom: 0.55rem;
}

.tf-plan__features li::before {
	content: "";
	position: absolute;
	top: 0.55em;
	left: 0;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background-color: var(--tf-field);
	box-shadow: inset 0 0 0 1px var(--tf-border-brand);
}

.tf-plan__features li::after {
	content: "";
	position: absolute;
	top: 0.82em;
	left: 4px;
	width: 5px;
	height: 8px;
	border-right: 1.5px solid var(--tf-brand);
	border-bottom: 1.5px solid var(--tf-brand);
	transform: rotate(45deg);
}

.tf-plan__cta {
	margin-top: auto;
	padding-top: 2rem;
}

.tf-plans__note {
	margin-top: 2rem;
	color: var(--tf-muted-strong);
	font-size: 13px;
	text-align: center;
}

@media (max-width: 1023px) {
	.tf-plans {
		grid-template-columns: 1fr;
	}
}

/* -------------------------------------------------------------------------
 * Steps
 * ---------------------------------------------------------------------- */

.tf-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem;
	margin-top: 3.5rem;
}

.tf-step {
	border-top: 1px solid var(--tf-border);
	padding-top: 1.5rem;
}

.tf-step__num {
	color: var(--tf-brand-strong);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
}

.tf-step__title {
	margin-top: 0.85rem;
	font-size: 18px;
	line-height: 1.4;
}

.tf-step__body {
	margin-top: 0.65rem;
	color: var(--tf-muted);
	font-size: 14px;
	line-height: 1.75;
}

@media (max-width: 767px) {
	.tf-steps {
		grid-template-columns: 1fr;
		gap: 1.75rem;
	}
}

/* -------------------------------------------------------------------------
 * Band (dark call to action)
 * ---------------------------------------------------------------------- */

.tf-band__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 2.5rem;
}

.tf-band__inner .tf-title {
	max-width: 24ch;
}

.tf-band__inner .tf-lead {
	margin-bottom: 0;
}

/* -------------------------------------------------------------------------
 * Contact
 * ---------------------------------------------------------------------- */

.tf-contact {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.5rem;
}

.tf-contact__label {
	color: var(--tf-brand-strong);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

:lang(zh) .tf-contact__label {
	letter-spacing: 0.04em;
	text-transform: none;
}

.tf-contact__value {
	margin-top: 0.9rem;
	color: var(--tf-heading);
	font-size: 15px;
	line-height: 1.7;
}

.tf-contact__value a {
	color: var(--tf-heading);
	text-decoration: none;
}

.tf-contact__value a:hover,
.tf-contact__value a:focus-visible {
	color: var(--tf-brand);
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 1023px) {
	.tf-contact {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 599px) {
	.tf-contact {
		grid-template-columns: 1fr;
	}
}

/* -------------------------------------------------------------------------
 * Footer
 * ---------------------------------------------------------------------- */

.tf-footer {
	background-color: var(--tf-brand-deep);
	color: #fff;
	padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}

.tf-footer a {
	color: inherit;
	text-decoration: none;
}

.tf-footer__top {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 2rem;
}

.tf-brand--footer {
	color: #fff;
}

.tf-brand--footer .tf-brand__mark {
	background-color: var(--tf-mint);
	color: var(--tf-brand-deep);
}

.tf-brand--footer .tf-brand__text small {
	color: rgba(255, 255, 255, 0.55);
}

.tf-footer__tagline {
	max-width: 34rem;
	color: rgba(255, 255, 255, 0.62);
	font-size: 14px;
	line-height: 1.7;
}

.tf-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.6);
	font-size: 13px;
}

.tf-footer__link:hover,
.tf-footer__link:focus-visible {
	color: var(--tf-mint);
}

/* Footer columns: brand and contact details, services, company links. */
.tf-footer__top {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr;
	gap: 2.5rem;
	align-items: start;
}

.tf-footer__brand {
	display: grid;
	gap: 1rem;
	justify-items: start;
}

.tf-footer__contact a {
	color: var(--tf-mint);
	text-decoration: none;
}

.tf-footer__contact a:hover,
.tf-footer__contact a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tf-footer__title {
	margin: 0 0 1rem;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

:lang(zh) .tf-footer__title {
	letter-spacing: 0.04em;
	text-transform: none;
}

.tf-footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.6rem;
	font-size: 14px;
}

.tf-footer__list a {
	color: rgba(255, 255, 255, 0.72);
}

.tf-footer__list a:hover,
.tf-footer__list a:focus-visible {
	color: var(--tf-mint);
}

.tf-footer__legal a {
	color: rgba(255, 255, 255, 0.6);
}

.tf-footer__legal a:hover,
.tf-footer__legal a:focus-visible {
	color: var(--tf-mint);
}

@media (max-width: 1023px) {
	.tf-footer__top {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 599px) {
	.tf-footer__top {
		grid-template-columns: 1fr;
	}
}

/* Header call to action. */
.tf-header__cta {
	height: 40px;
	padding: 0 1.1rem;
	font-size: 13px;
}

@media (max-width: 1023px) {
	.tf-header__cta {
		display: none;
	}
}

/* Service cards on the home page. */
.tf-service__link {
	color: var(--tf-brand);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.tf-service__link:hover,
.tf-service__link:focus-visible {
	color: var(--tf-brand-strong);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* About block on the home page. */
.tf-about {
	max-width: 860px;
}

.tf-about .tf-lead + .tf-lead {
	margin-top: 1rem;
}

.tf-about__link {
	margin-top: 1.5rem;
}

/* Inside the dark hero the frame follows the 4:3 source images. */
.tf-hero .tf-carousel__track {
	aspect-ratio: 4 / 3;
	border-color: rgba(255, 255, 255, 0.16);
	background-color: rgba(255, 255, 255, 0.05);
}

.tf-hero .tf-carousel__dot {
	background-color: rgba(255, 255, 255, 0.35);
}

.tf-hero .tf-carousel__dot.is-active {
	background-color: var(--tf-mint);
}

/* Home page carousel. */
.tf-carousel {
	position: relative;
}

.tf-carousel__track {
	position: relative;
	aspect-ratio: 4 / 3;
	border: 1px solid var(--tf-border);
	border-radius: var(--tf-radius-card);
	overflow: hidden;
	background-color: var(--tf-brand-deep);
}

@media (min-width: 768px) {
	.tf-carousel__track {
		aspect-ratio: 16 / 9;
	}
}

.tf-carousel__slide {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	transition: opacity 0.45s ease;
	pointer-events: none;
}

.tf-carousel__slide.is-active {
	opacity: 1;
	pointer-events: auto;
}

.tf-carousel__slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tf-carousel__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 50%;
	background-color: rgba(6, 25, 20, 0.55);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.18s ease, border-color 0.18s ease;
}

.tf-carousel__nav:hover,
.tf-carousel__nav:focus-visible {
	background-color: var(--tf-brand);
	border-color: var(--tf-brand);
}

.tf-carousel__nav--prev {
	left: 16px;
}

.tf-carousel__nav--next {
	right: 16px;
}

.tf-carousel__dots {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 1.25rem;
}

.tf-carousel__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: var(--tf-border);
	cursor: pointer;
	transition: background-color 0.18s ease, transform 0.18s ease;
}

.tf-carousel__dot.is-active {
	background-color: var(--tf-brand);
	transform: scale(1.2);
}

.tf-carousel__dot:focus-visible {
	outline: 3px solid var(--tf-brand-strong);
	outline-offset: 3px;
}

@media (max-width: 599px) {
	.tf-carousel__nav {
		width: 36px;
		height: 36px;
		font-size: 22px;
	}

	.tf-carousel__nav--prev {
		left: 8px;
	}

	.tf-carousel__nav--next {
		right: 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tf-carousel__slide {
		transition: none;
	}
}

/* Illustrations used inside page content. */
.tf-figure {
	max-width: 60rem;
	margin: 0 auto;
}

.tf-figure img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border: 1px solid var(--tf-border);
	border-radius: var(--tf-radius-card);
}

.tf-figure figcaption {
	margin-top: 0.9rem;
	color: var(--tf-muted);
	font-size: 13px;
	line-height: 1.7;
}

/* Long-form legal copy. */
.tf-prose {
	max-width: 760px;
}

.tf-prose h2 {
	margin-top: 2.5rem;
	font-size: 22px;
}

.tf-prose p {
	margin-top: 1rem;
	color: var(--tf-muted);
	font-size: 15px;
	line-height: 1.8;
}

.tf-prose .tf-lead {
	color: var(--tf-heading);
}

/* -------------------------------------------------------------------------
 * Contact page
 * ---------------------------------------------------------------------- */

.tf-contact-section {
	padding-block: clamp(3rem, 6vw, 5.5rem);
}

.tf-contact-split {
	display: grid;
	grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: start;
}

.tf-contact__eyebrow {
	color: var(--tf-brand-strong);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

:lang(zh) .tf-contact__eyebrow {
	letter-spacing: 0.12em;
}

.tf-contact__title {
	margin-top: 1.25rem;
	font-size: clamp(1.9rem, 3.2vw, 2.9rem);
	line-height: 1.12;
	letter-spacing: -0.03em;
}

.tf-contact-intro .tf-lead {
	margin-top: 1.5rem;
	max-width: 34rem;
	color: var(--tf-muted);
	font-size: 15px;
	line-height: 1.8;
}

.tf-contact__list {
	margin-top: 2.25rem;
	border-block: 1px solid var(--tf-border);
}

.tf-contact__row {
	display: flex;
	gap: 1rem;
	padding-block: 1.25rem;
}

.tf-contact__row + .tf-contact__row {
	border-top: 1px solid var(--tf-border);
}

.tf-contact__icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	flex: 0 0 auto;
	border-radius: 16px;
	background-color: #dff5ee;
	color: #14765f;
}

.tf-contact__icon svg {
	width: 20px;
	height: 20px;
}

.tf-contact__label {
	color: #718780;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

:lang(zh) .tf-contact__label {
	letter-spacing: 0.08em;
}

.tf-contact__value {
	margin-top: 0.25rem;
	color: var(--tf-heading);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.65;
}

.tf-contact__value a {
	color: inherit;
	text-decoration: none;
}

.tf-contact__value a:hover,
.tf-contact__value a:focus-visible {
	color: var(--tf-brand);
}

/* The plugin form sits in a white card, TradeFlow style. */
.tf-contact-form {
	padding: clamp(1.5rem, 3vw, 2.25rem);
	border: 1px solid var(--tf-border);
	border-radius: 32px;
	background-color: #fff;
	box-shadow: 0 24px 70px rgba(8, 35, 29, 0.09);
}

.tf-contact-form .cs-section {
	padding-block: 0;
}

.tf-contact-form .cs-container {
	max-width: none;
	padding-inline: 0;
}

.tf-contact-form .cs-grid--sidebar {
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
}

/* The reference layout has no sidebar next to the form. */
.tf-contact-form .cs-grid--sidebar > aside {
	display: none;
}

.tf-contact-form .cs-field__label {
	color: #718780;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

:lang(zh) .tf-contact-form .cs-field__label {
	letter-spacing: 0.06em;
}

.tf-contact-form .cs-field input[type="text"],
.tf-contact-form .cs-field input[type="email"],
.tf-contact-form .cs-field input[type="tel"],
.tf-contact-form .cs-field select,
.tf-contact-form .cs-field textarea {
	border-radius: 14px;
	background-color: #fff;
}

.tf-contact-form .cs-btn {
	width: 100%;
	margin-top: 0.5rem;
}

@media (max-width: 1023px) {
	.tf-contact-split {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* -------------------------------------------------------------------------
 * Company Site Core plugin blocks
 *
 * The enquiry form is rendered by the plugin, which ships the class names
 * below. They are mapped onto this theme's design system so the form looks
 * native on the TradeFlow pages.
 * ---------------------------------------------------------------------- */

.cs-container {
	width: 100%;
	max-width: var(--tf-container);
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.cs-section {
	padding-block: var(--tf-section-pad);
}

.cs-section--tight {
	padding-block: clamp(2.5rem, 5vw, 4rem);
}

.cs-grid {
	display: grid;
	gap: 2.5rem;
}

.cs-grid--sidebar {
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	align-items: start;
}

.cs-card {
	padding: 28px;
	border: 1px solid var(--tf-border);
	border-radius: var(--tf-radius-card);
	background-color: #fff;
}

.cs-card__title {
	margin: 0 0 0.75rem;
	color: var(--tf-heading);
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.cs-card__body {
	margin: 0;
	color: var(--tf-muted);
	font-size: 14px;
	line-height: 1.7;
}

.cs-notice {
	padding: 1rem 1.15rem;
	border: 1px solid var(--tf-border-brand);
	border-radius: 16px;
	background-color: var(--tf-surface-soft);
	color: var(--tf-muted-strong);
	font-size: 13px;
	line-height: 1.7;
}

.cs-notice p {
	margin: 0;
}

.cs-notice--success {
	border-color: rgba(22, 128, 102, 0.35);
	background-color: #f2faf6;
}

.cs-notice--error {
	border-color: rgba(180, 35, 24, 0.25);
	background-color: #fdf4f3;
}

.cs-notice--warning {
	border-color: rgba(180, 120, 20, 0.25);
	background-color: #fdf8ef;
}

.cs-footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--tf-muted-strong);
	font-size: 14px;
	line-height: 1.8;
}

.cs-plan__features {
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
	color: var(--tf-muted-strong);
	font-size: 14px;
	line-height: 1.7;
}

.cs-plan__features li {
	position: relative;
	padding-left: 1.5rem;
	margin-bottom: 0.5rem;
}

.cs-plan__features li::before {
	content: "";
	position: absolute;
	top: 0.6em;
	left: 0;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: var(--tf-brand-strong);
}

/* Form */

.cs-form {
	display: grid;
	gap: 1rem;
}

.cs-form__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.cs-field {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.cs-field__label {
	color: var(--tf-heading);
	font-size: 13px;
	font-weight: 600;
}

.cs-field__req {
	color: #b42318;
	margin-left: 0.15rem;
}

.cs-field__hint {
	color: var(--tf-muted-strong);
	font-size: 12px;
}

.cs-field__error {
	color: #b42318;
	font-size: 12px;
	min-height: 1.2em;
}

.cs-field__error:empty {
	display: none;
}

.cs-field input[type="text"],
.cs-field input[type="email"],
.cs-field input[type="tel"],
.cs-field select,
.cs-field textarea {
	width: 100%;
	min-height: 46px;
	padding: 0.85rem 1rem;
	border: 1px solid var(--tf-border-brand);
	border-radius: 16px;
	background-color: var(--tf-field);
	color: var(--tf-heading);
	font-family: inherit;
	font-size: 14px;
	line-height: 1.5;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cs-field textarea {
	min-height: 140px;
	resize: vertical;
}

.cs-field input:focus,
.cs-field select:focus,
.cs-field textarea:focus {
	outline: none;
	border-color: var(--tf-brand);
	box-shadow: 0 0 0 3px rgba(22, 128, 102, 0.16);
}

.cs-field input[aria-invalid="true"],
.cs-field select[aria-invalid="true"],
.cs-field textarea[aria-invalid="true"] {
	border-color: #b42318;
}

.cs-check {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	color: var(--tf-muted-strong);
	font-size: 13px;
	line-height: 1.65;
}

.cs-check input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin-top: 0.15rem;
	flex: 0 0 auto;
	accent-color: var(--tf-brand);
}

.cs-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.cs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	height: 50px;
	padding: 0 1.5rem;
	border: 1px solid transparent;
	border-radius: var(--tf-radius-pill);
	background-color: var(--tf-brand);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.18s ease, transform 0.18s ease;
}

.cs-btn:hover,
.cs-btn:focus-visible {
	background-color: var(--tf-brand-strong);
	color: #fff;
	transform: translateY(-1px);
}

.cs-btn--block {
	width: 100%;
}

@media (max-width: 767px) {
	.cs-grid--sidebar {
		grid-template-columns: 1fr;
	}

	.cs-form__row {
		grid-template-columns: 1fr;
	}
}

/* -------------------------------------------------------------------------
 * Accessibility
 * ---------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}
}
