/* =========================================================================
   THEORYS — Home / Landing page styles
   All rules scoped under .thr so nothing leaks into Storefront or wp-admin.
   Colours come exclusively from the tokens defined in style.css (:root).
   Mobile-first: base rules target small screens, media queries scale up.
   ========================================================================= */

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

.thr {
	font-family: var(--font-body);
	color: var(--ink);
	background: var(--white);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.thr img { max-width: 100%; display: block; }

.thr h1, .thr h2, .thr h3, .thr h4 {
	font-family: var(--font-head);
	color: var(--ink);
	margin: 0;
	line-height: 1.08;
	letter-spacing: -0.02em;   /* tight, confident tracking */
	font-weight: 600;
}

/* Links inherit the surrounding text colour — EXCEPT buttons, which carry their
   own. `.thr a` is (0,1,1) and beat `.thr-btn--primary` (0,1,0), so every
   anchor-button inherited its parent's colour instead: "Browse catalog" rendered
   ink-on-forest in the hero, and white-on-white (invisible) inside .thr--dark. */
.thr a:not(.thr-btn) { color: inherit; text-decoration: none; }

.thr-wrap {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Section rhythm + hairline dividers ------------------------------------- */
.thr-section { padding: 64px 0; }
.thr--white     { background: var(--white); }
.thr--offwhite  { background: var(--off-white); }
.thr--dark      { background: var(--forest-deep); color: var(--white); }
.thr--dark h1, .thr--dark h2, .thr--dark h3, .thr--dark h4 { color: var(--white); }

/* Metallic hairline rule between sections */
.thr-hairline {
	height: 1px;
	border: 0;
	margin: 0;
	background: var(--metal);
	opacity: 0.7;
}

.thr-eyebrow {
	font-family: var(--font-head);
	font-size: 12px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--forest-mid);
	margin: 0 0 14px;
	font-weight: 600;
}
.thr--dark .thr-eyebrow { color: var(--silver); }

.thr-section-title { font-size: clamp(26px, 4vw, 40px); margin-bottom: 12px; }
.thr-lead { color: #3a423d; max-width: 60ch; }
.thr--dark .thr-lead { color: rgba(255,255,255,0.82); }

/* Buttons ---------------------------------------------------------------- */
.thr-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-head);
	font-weight: 500;
	font-size: 15px;
	letter-spacing: 0.01em;
	padding: 13px 22px;
	border-radius: 12px;
	border: 1.5px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.thr-btn:hover { transform: translateY(-1px); }
.thr-btn--primary { background: var(--forest-deep); color: var(--white); border-color: var(--forest-deep); }
.thr-btn--primary:hover { background: var(--forest-mid); border-color: var(--forest-mid); }
.thr-btn--outline { background: transparent; color: var(--forest-deep); border-color: var(--forest-deep); }
.thr-btn--outline:hover { background: var(--forest-deep); color: var(--white); }
.thr-btn--ondark { background: var(--white); color: var(--forest-deep); border-color: var(--white); }
.thr-btn--ondark:hover { background: var(--off-white); }

/* Pill badge (metallic hairline border) --------------------------------- */
.thr-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-head);
	font-size: 11.5px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--forest-mid);
	padding: 8px 14px;
	border-radius: 999px;
	background:
		linear-gradient(var(--white), var(--white)) padding-box,
		var(--metal) border-box;
	border: 1.5px solid transparent;
}

/* Announcement bar ------------------------------------------------------- */
.thr-announce {
	background: var(--ink);
	color: var(--silver);
	text-align: center;
	font-size: 12.5px;
	letter-spacing: 0.04em;
	padding: 9px 16px;
}

/* Header ----------------------------------------------------------------- */
.thr-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--white);
	border-bottom: 1px solid var(--line);
}
.thr-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
	gap: 16px;
}
.thr-wordmark {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 20px;
	letter-spacing: 0.28em;
	color: var(--ink);
	padding-left: 0.28em; /* optical balance for tracking */
}
.thr-nav { display: none; }               /* hidden on mobile */
.thr-nav a {
	font-size: 14.5px;
	color: var(--ink);
	padding: 6px 2px;
	transition: color .15s ease;
}
.thr-nav a:hover { color: var(--forest-mid); }
.thr-header-right { display: flex; align-items: center; gap: 10px; }
.thr-header-right .thr-btn { padding: 9px 16px; font-size: 14px; }

/* Hamburger */
.thr-burger {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	width: 42px;
	height: 42px;
	padding: 10px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--white);
	cursor: pointer;
}
.thr-burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.thr-mobile-nav {
	display: none;
	border-bottom: 1px solid var(--line);
	background: var(--white);
}
.thr-mobile-nav.is-open { display: block; }
.thr-mobile-nav a {
	display: block;
	padding: 14px 20px;
	border-top: 1px solid var(--line);
	font-size: 15px;
}

/* Hero ------------------------------------------------------------------- */
.thr-hero { padding: 44px 0 56px; }
.thr-hero-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.thr-hero h1 {
	font-size: clamp(38px, 7vw, 60px);
	margin: 18px 0 20px;
}
.thr-hero-sub { font-size: 17px; color: #3a423d; max-width: 54ch; margin: 0 0 28px; }
.thr-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.thr-ruo-inline {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--platinum-lo);
}
.thr-ruo-inline svg { width: 15px; height: 15px; flex: none; }

.thr-hero-media {
	position: relative;
	/* No forced aspect-ratio: the hero photo is 3:2 and sizes the box itself. The
	   4:5 here was for the empty placeholder and would have letterboxed the image.
	   .thr-hero-grid is align-items:center, so the shorter column stays centred. */
	border-radius: 18px;
	overflow: hidden;
	/* Kept as the tint shown behind the photo while it decodes. */
	background:
		radial-gradient(120% 100% at 20% 0%, rgba(46,94,78,0.55), transparent 60%),
		var(--forest-deep);
	border: 1px solid rgba(255,255,255,0.06);
}
/* width/height attributes on the <img> + height:auto give the browser the 3:2 box
   up front, so the hero reserves space and does not shift when the photo lands.
   <picture> is display:inline by default, which left a 1-2px baseline sliver of the
   green panel showing under the photo — block removes it. */
.thr-hero-media picture { display: block; }
.thr-hero-media-img { display: block; width: 100%; height: auto; }
/* Caption sits BELOW the photo, centred (2026-08-10). It used to be absolutely
   positioned over the bottom of the image with a dark scrim
   (linear-gradient(transparent, rgba(14,18,15,0.85))), which read as a green bar
   across the bottom of the shot. No overlay now, so the photo is uninterrupted and
   the forest background behind it only ever shows while the image decodes. */
.thr-hero-media-cap {
	display: block;
	margin-top: 12px;
	text-align: center;
	font-family: var(--font-head);
	font-size: 12px;
	letter-spacing: 0.16em;
	color: var(--forest-mid);
}

/* Trust ticker / marquee ------------------------------------------------- */
.thr-ticker {
	background: var(--forest-deep);
	color: var(--white);
	overflow: hidden;
	white-space: nowrap;
	padding: 14px 0;
	border-top: 1px solid rgba(255,255,255,0.08);
	border-bottom: 1px solid rgba(255,255,255,0.08);
}
.thr-ticker-track {
	display: inline-flex;
	gap: 0;
	animation: thr-marquee 32s linear infinite;
}
.thr-ticker-group { display: inline-flex; }
.thr-ticker-item {
	font-family: var(--font-head);
	font-size: 14px;
	letter-spacing: 0.06em;
	padding: 0 26px;
	color: rgba(255,255,255,0.9);
}
.thr-ticker-item::after { content: "·"; margin-left: 26px; color: var(--platinum-lo); }
@keyframes thr-marquee {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
	.thr-ticker-track { animation: none; }
}

/* NOTE: the .thr-chip / .thr-chips rules that used to live here were deleted with
   the "Browse the catalog" section (2026-08-11). Nothing else on the lander used
   them, and this stylesheet only loads under is_page_template('template-home.php').
   The catalogue's own chip rail is unaffected — it has its own copy of those
   classes in theorys-shop.css. */

/* Stat band -------------------------------------------------------------- */
.thr-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
.thr-stat-num {
	font-family: var(--font-head);
	font-weight: 600;
	font-size: clamp(34px, 6vw, 52px);
	color: var(--forest-deep);
	letter-spacing: -0.03em;
	line-height: 1;
}
.thr-stat-cap {
	margin-top: 10px;
	font-size: 11.5px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--platinum-lo);
}

/* Manifesto contrast cards ---------------------------------------------- */
.thr-manifesto-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 36px; }
.thr-compare {
	border-radius: 18px;
	padding: 28px 26px;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.12);
}
.thr-compare--good {
	border-color: var(--forest-mid);
	background: rgba(46,94,78,0.18);
}
.thr-compare-rule { height: 2px; width: 56px; background: var(--metal); border-radius: 2px; margin-bottom: 18px; }
.thr-compare h3 {
	font-size: 13px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	margin-bottom: 18px;
	color: var(--white);
}
.thr-compare--muted h3 { color: var(--platinum-lo); }
.thr-compare ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.thr-compare li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: rgba(255,255,255,0.9); }
.thr-mark { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.thr-mark--x    { color: var(--platinum-lo); }
.thr-mark--check{ color: #7fd7b3; }

/* Why Theorys — numbered cards ------------------------------------------ */
.thr-grid-3 { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 36px; }
.thr-card {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 26px 24px;
	box-shadow: 0 1px 2px rgba(14,18,15,0.04), 0 8px 24px rgba(14,18,15,0.04);
	transition: transform .15s ease, box-shadow .15s ease;
}
.thr-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(14,18,15,0.06), 0 14px 34px rgba(14,18,15,0.08); }
.thr-card-num {
	font-family: var(--font-head);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.1em;
	color: var(--forest-mid);
	margin-bottom: 14px;
}
.thr-card h3 { font-size: 19px; margin-bottom: 10px; letter-spacing: -0.01em; }
.thr-card p { font-size: 14.5px; color: #3a423d; margin: 0; }

/* NOTE: the .thr-steps / .thr-step / .thr-step-num rules that used to live here
   were deleted with the "How It Works" section (2026-08-11), along with their
   3-column override in the min-width:768px block below. Nothing else on the
   lander used them, and this stylesheet only loads under
   is_page_template('template-home.php').
   Do NOT confuse these with the .thr-step in theorys-product.css — that is the
   quantity stepper on single-product pages, a different component that happens
   to share the class name, and it is untouched. */

/* FAQ accordion (native <details>) -------------------------------------- */
.thr-faq { max-width: 820px; margin: 34px auto 0; display: grid; gap: 12px; }
.thr-faq-item {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 4px 20px;
}
.thr-faq-item summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 16px 0;
	font-family: var(--font-head);
	font-size: 16.5px;
	font-weight: 500;
}
.thr-faq-item summary::-webkit-details-marker { display: none; }
.thr-faq-item summary::after {
	content: "+";
	font-family: var(--font-head);
	font-size: 22px;
	color: var(--forest-mid);
	transition: transform .2s ease;
}
.thr-faq-item[open] summary::after { content: "–"; }
.thr-faq-item p { margin: 0 0 18px; font-size: 15px; color: #3a423d; }

/* Final CTA -------------------------------------------------------------- */
.thr-finalcta { text-align: center; }
.thr-finalcta h2 { font-size: clamp(28px, 5vw, 46px); margin-bottom: 16px; }
.thr-finalcta p { max-width: 56ch; margin: 0 auto 28px; color: rgba(255,255,255,0.82); }
.thr-finalcta .thr-ruo-inline { justify-content: center; margin-top: 20px; }

/* Footer ----------------------------------------------------------------- */
.thr-footer { background: var(--ink); color: var(--silver); padding: 56px 0 30px; }
.thr-footer-top { display: grid; grid-template-columns: 1fr; gap: 34px; }
.thr-footer-brand .thr-wordmark { color: var(--white); padding-left: 0; }
.thr-footer-tag { margin-top: 14px; font-size: 14px; color: var(--platinum-lo); max-width: 40ch; }
.thr-footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.thr-footer-col h4 {
	font-family: var(--font-head);
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--white);
	margin-bottom: 14px;
	font-weight: 600;
}
.thr-footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.thr-footer-col a { font-size: 14px; color: var(--silver); transition: color .15s ease; }
.thr-footer-col a:hover { color: var(--white); }
.thr-footer-ruo {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid rgba(255,255,255,0.1);
	font-size: 12.5px;
	line-height: 1.7;
	color: var(--platinum-lo);
	max-width: 90ch;
}
.thr-footer-ruo a { color: var(--silver); text-decoration: underline; }
.thr-footer-copy {
	margin-top: 22px;
	font-size: 12.5px;
	color: var(--platinum-lo);
	letter-spacing: 0.02em;
}

/* =========================================================================
   RESPONSIVE — tablet (>=768) and desktop (>=1024)
   ========================================================================= */
@media (min-width: 768px) {
	.thr-section { padding: 88px 0; }
	.thr-nav { display: flex; gap: 26px; }
	.thr-burger { display: none; }
	.thr-mobile-nav { display: none !important; }

	.thr-hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 48px; }
	.thr-stats { grid-template-columns: repeat(4, 1fr); gap: 32px; }
	.thr-manifesto-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
	.thr-grid-3 { grid-template-columns: repeat(2, 1fr); }
	.thr-footer-top { grid-template-columns: 1.1fr 2fr; gap: 48px; }
	.thr-footer-cols { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
	.thr-grid-3 { grid-template-columns: repeat(3, 1fr); }
}
