/* ─────────────────────────────────────────────────────────
   Service: eCommerce Total Market Keyword Research
   /services/total-market-research/

   Ported from a desktop-only mock. The mock shipped ~1.6MB of generated
   utility CSS; this is the same design rebuilt in the theme's own idiom,
   using its Inter stack and --red / --black / --muted tokens.

   Everything is scoped under .tmr. The page sits inside the normal site
   header and footer, so nothing here may leak.
   ───────────────────────────────────────────────────────── */

.tmr {
	--tmr-dark: #202020;
	--tmr-grey: #F7F7F7;
	--tmr-rule: #E4E4E4;
	color: var(--black);
}

.tmr-inner { max-width: 1200px; margin: 0 auto; padding: 0 48px; }

.tmr-section { padding: 96px 0; background: var(--white); }
.tmr-section--grey { background: var(--tmr-grey); }
.tmr-section--dark { background: var(--tmr-dark); color: var(--white); }

/* ── Shared type ───────────────────────────────────── */
.tmr-eyebrow {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--red);
	margin: 0 0 18px;
}
.tmr-eyebrow--on-dark { color: var(--red); }

.tmr-h1 {
	font-size: clamp(2.4rem, 5.4vw, 4.4rem);
	font-weight: 900;
	line-height: 1.02;
	letter-spacing: -0.035em;
	text-transform: uppercase;
	margin: 0 0 26px;
	max-width: 17ch;
	/* Stated, not inherited: the theme sets a colour on the bare `h1`
	   element, and a direct rule beats the hero's inherited white. */
	color: var(--white);
}
/* The mock sets the closing phrase on a red block. */
.tmr-h1 em {
	font-style: normal;
	background: var(--red);
	color: var(--white);
	padding: 0 0.12em;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

.tmr-h2 {
	font-size: clamp(1.9rem, 3.6vw, 3.1rem);
	font-weight: 900;
	line-height: 1.06;
	letter-spacing: -0.03em;
	text-transform: uppercase;
	margin: 0 0 22px;
	max-width: 20ch;
}
.tmr-h2--on-dark { color: var(--white); }

.tmr-lead {
	font-size: 17.5px;
	line-height: 1.7;
	color: var(--muted);
	margin: 0 0 54px;
	max-width: 62ch;
}
.tmr-lead--on-dark { color: rgba(255, 255, 255, 0.72); }

/* Red triangle marker, reused across industries and the "You get" boxes. */
.tmr-tri {
	display: block;
	width: 0;
	height: 0;
	border-top: 7px solid var(--red);
	border-right: 11px solid transparent;
	flex-shrink: 0;
}

/* ── Buttons ───────────────────────────────────────── */
.tmr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 17px 34px;
	background: var(--red);
	color: var(--white);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 0.22s, transform 0.22s, color 0.22s;
}
.tmr-btn:hover { background: var(--black); color: var(--white); transform: translateY(-2px); }
.tmr-btn--ghost {
	background: transparent;
	color: var(--white);
	border: 1px solid rgba(255, 255, 255, 0.4);
}
.tmr-btn--ghost:hover { background: var(--white); color: var(--black); }
.tmr-btn--dark { background: var(--black); }
.tmr-btn--dark:hover { background: var(--red); }

/* ── Hero ──────────────────────────────────────────── */
.tmr-hero {
	background: var(--tmr-dark);
	color: var(--white);
	padding: 112px 0 120px;
}
.tmr-hero-lead {
	font-size: 17.5px;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.72);
	max-width: 68ch;
	margin: 0 0 38px;
}
.tmr-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ── Comparison illustration ───────────────────────── */
.tmr-compare { background: var(--tmr-dark); padding: 10px 10px 4px; margin-bottom: 14px; }
.tmr-compare-svg { display: block; width: 100%; height: auto; }
.tmr-svg-label {
	font-family: Inter, system-ui, sans-serif;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 1.4px;
	fill: #9A9A9A;
}
.tmr-svg-label--red { fill: var(--red); }
.tmr-compare-note { font-size: 13px; color: var(--muted); margin: 0 0 44px; }

/* ── Illustrative bars ─────────────────────────────── */
.tmr-bars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 46px; margin-bottom: 14px; }
.tmr-bars-kicker {
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 0 0 10px;
}
.tmr-bars-kicker--red { color: var(--red); }
.tmr-bars-title {
	font-size: 22px;
	font-weight: 900;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	margin: 0 0 10px;
}
.tmr-bars-desc { font-size: 15.5px; line-height: 1.65; color: var(--muted); margin: 0 0 24px; max-width: 46ch; }

.tmr-bar-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 14px; margin-bottom: 12px; }
.tmr-bar-label { font-size: 13px; color: var(--muted); }
.tmr-bar-track { display: block; height: 10px; background: rgba(0, 0, 0, 0.07); }
.tmr-bar-fill { display: block; height: 100%; background: #101010; }
.tmr-bar-fill--red { background: var(--red); }

/* ── Three-up ──────────────────────────────────────── */
.tmr-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.tmr-three-item p { font-size: 16px; line-height: 1.7; color: rgba(255, 255, 255, 0.72); margin: 0; }
.tmr-three-title {
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--white);
	margin: 0 0 12px;
}
.tmr-pullquote {
	margin: 56px 0 0;
	padding-top: 34px;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	font-size: 20px;
	line-height: 1.6;
	color: var(--white);
	max-width: 70ch;
}

/* ── Industries ────────────────────────────────────── */
/* Flush the first column of each row to the left edge, and drop the trailing
   divider so the grid reads as columns rather than boxes. */

/* ── Deliverables ──────────────────────────────────── */
.tmr-deliverables {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}
/* Boxed: the twelve items read as a set of cards rather than a run of
   paragraphs. White on the grey section, matching the "You get" panels. */
.tmr-deliverable {
	background: var(--white);
	border: 1px solid var(--tmr-rule);
	padding: 26px 24px 28px;
}
.tmr-deliverable p { font-size: 15px; line-height: 1.65; color: var(--muted); margin: 0; }
.tmr-deliverable-num {
	display: block;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.16em;
	color: var(--red);
	margin-bottom: 10px;
}
.tmr-deliverable-title {
	font-size: 15px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	margin: 0 0 8px;
}
.tmr-footnote { margin: 44px 0 0; font-size: 15px; color: var(--muted); max-width: 70ch; }
/* The footnote sits in muted grey, so its link needs the accent to read
   as a link rather than as emphasis. */
.tmr-footnote a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.tmr-footnote a:hover { text-decoration-thickness: 2px; }

/* ── Phases ────────────────────────────────────────── */
.tmr-phases { border-top: 2px solid var(--black); }
.tmr-phase {
	display: grid;
	grid-template-columns: 200px minmax(0, 1fr) 320px;
	gap: 40px;
	padding: 40px 0;
	border-bottom: 1px solid var(--tmr-rule);
	align-items: start;
}
.tmr-phase-num {
	display: block;
	font-size: 46px;
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.04em;
	color: var(--red);
}
.tmr-phase-label {
	display: block;
	margin-top: 8px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--muted);
}
.tmr-phase-title {
	font-size: 23px;
	font-weight: 900;
	line-height: 1.2;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	margin: 0 0 12px;
}
.tmr-phase-body p { font-size: 16px; line-height: 1.7; color: var(--muted); margin: 0; }
.tmr-phase-get {
	display: flex;
	gap: 12px;
	background: var(--tmr-grey);
	padding: 22px 24px;
}
.tmr-phase-get .tmr-tri { margin-top: 7px; }
.tmr-phase-get p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; }
.tmr-phase-get strong { color: var(--black); font-weight: 800; }
/* On the grey section the "You get" panel needs to separate from its ground. */
.tmr-section--grey .tmr-phase-get { background: var(--white); }

/* ── Segments ──────────────────────────────────────── */
.tmr-segments { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.tmr-segment { padding-top: 22px; border-top: 2px solid var(--red); }
.tmr-segment p { font-size: 15px; line-height: 1.68; color: var(--muted); margin: 0; }
.tmr-segment-title {
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin: 0 0 10px;
}

/* ── Results ───────────────────────────────────────── */

/* ── CTA ───────────────────────────────────────────── */
.tmr-cta .tmr-lead { margin-bottom: 36px; }

/* ── Narrow screens ────────────────────────────────── */
@media (max-width: 1024px) {
	.tmr-inner { padding: 0 32px; }
	.tmr-section, .tmr-hero { padding-top: 76px; padding-bottom: 76px; }
	.tmr-deliverables,
	.tmr-three, .tmr-segments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tmr-phase { grid-template-columns: 140px minmax(0, 1fr); }
	/* The "You get" panel drops under the copy rather than shrinking. */
	.tmr-phase-get { grid-column: 2; }
}

@media (max-width: 720px) {
	.tmr-inner { padding: 0 22px; }
	.tmr-section, .tmr-hero { padding-top: 58px; padding-bottom: 58px; }
	.tmr-bars { grid-template-columns: 1fr; gap: 36px; }
	.tmr-deliverables,
	.tmr-three, .tmr-segments { grid-template-columns: 1fr; }
	.tmr-phase { grid-template-columns: 1fr; gap: 20px; padding: 32px 0; }
	.tmr-phase-get { grid-column: 1; }
	.tmr-phase-mark { display: flex; align-items: baseline; gap: 14px; }
	.tmr-phase-label { margin-top: 0; }
	.tmr-hero-actions .tmr-btn { flex: 1 1 100%; }
	.tmr-bar-row { grid-template-columns: 92px minmax(0, 1fr); }
	/* The comparison SVG is a wide two-panel diagram; let it scroll rather
	   than shrink the dots to invisibility. */
	.tmr-compare { overflow-x: auto; }
	.tmr-compare-svg { min-width: 640px; }
}
