/*
 * tMP-AI: the comparison pages.
 *
 * The pin-sheet system tMP Core's marketing pages use: paper, card, ink, serif headings, mono
 * eyebrows, one blue. Tokens restated with the same values as tMP Core's home.css and chrome.css,
 * scoped to .tmpai-cmp so nothing leaks into the header, footer or theme.
 */

.tmpai-cmp {
	--paper: #F5F2EA; --card: #FFFDF8; --ink: #0F2029; --ink2: #3C4C55; --muted: #5F6E76;
	--line: rgba(15, 32, 41, 0.16); --line2: rgba(15, 32, 41, 0.09);
	--accent: #58B4E5; --blue-deep: #1A6A96; --green: #2D6A4F; --amber: #B4531C;
	--serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
	--sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
	display: block; background: var(--paper); color: var(--ink2); font-family: var(--sans); font-size: 17px; line-height: 1.6;
	-webkit-font-smoothing: antialiased; padding-bottom: 0;
}
body.tmpai-cmp-page { background: #F5F2EA; margin: 0; }
.tmpai-cmp *, .tmpai-cmp *::before, .tmpai-cmp *::after { box-sizing: border-box; }
.tmpai-cmp__in { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.tmpai-cmp h1, .tmpai-cmp h2, .tmpai-cmp h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); letter-spacing: -0.01em; line-height: 1.08; margin: 0 0 14px; text-transform: none; }
.tmpai-cmp h1 { font-size: clamp(40px, 6vw, 70px); max-width: 20ch; text-wrap: balance; }
.tmpai-cmp h2 { font-size: clamp(28px, 3.6vw, 42px); text-wrap: balance; }
.tmpai-cmp h3 { font-size: clamp(21px, 2.2vw, 25px); margin-top: 22px; }
.tmpai-cmp p { margin: 0 0 14px; }
.tmpai-cmp b { color: var(--ink); font-weight: 600; }
.tmpai-cmp a { color: var(--blue-deep); }
.tmpai-cmp__eyebrow { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; display: block; }
.tmpai-cmp__lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; max-width: 64ch; }
.tmpai-cmp__note { font-size: 14px; color: var(--muted); max-width: 78ch; margin-top: 14px; }

.tmpai-cmp__crumbs { padding-top: 26px; font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.tmpai-cmp__crumbs a { color: var(--muted); text-decoration: none; }
.tmpai-cmp__crumbs a:hover { color: var(--ink); text-decoration: underline; }
.tmpai-cmp__hero { padding-top: clamp(36px, 7vh, 80px); padding-bottom: clamp(20px, 4vh, 40px); }
.tmpai-cmp__sec { padding-top: clamp(36px, 6vh, 64px); }

/* the short answer */
.tmpai-cmp__pick { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tmpai-cmp__pickcard { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px 26px; }
.tmpai-cmp__pickcard--us { border-color: var(--ink); box-shadow: inset 0 3px 0 var(--accent); }
.tmpai-cmp__pickcard h2 { font-size: 26px; }
.tmpai-cmp__pickcard ul, .tmpai-cmp__said, .tmpai-cmp__limits { margin: 0; padding: 0; list-style: none; }
.tmpai-cmp__pickcard li, .tmpai-cmp__said li, .tmpai-cmp__limits li { position: relative; padding: 9px 0 9px 22px; border-top: 1px solid var(--line2); }
.tmpai-cmp__pickcard li:first-child, .tmpai-cmp__said li:first-child, .tmpai-cmp__limits li:first-child { border-top: 0; }
.tmpai-cmp__pickcard li::before, .tmpai-cmp__said li::before, .tmpai-cmp__limits li::before { content: ''; position: absolute; left: 2px; top: 19px; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.tmpai-cmp__pickcard--us li::before { background: var(--accent); }
.tmpai-cmp__limits li::before { background: var(--amber); }

/* tables */
.tmpai-cmp__tablewrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 18px; margin-top: 8px; }
.tmpai-cmp__table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 640px; }
.tmpai-cmp__table th, .tmpai-cmp__table td { text-align: left; vertical-align: top; padding: 14px 18px; border-top: 1px solid var(--line2); }
.tmpai-cmp__table thead th { border-top: 0; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-top: 16px; }
.tmpai-cmp__table tbody th { font-weight: 600; color: var(--ink); width: 22%; }
.tmpai-cmp__table td { color: var(--ink2); }
.tmpai-cmp__table td:last-child { color: var(--ink); background: rgba(88, 180, 229, 0.06); }
.tmpai-cmp__table--hub td:last-child { background: none; font-variant-numeric: tabular-nums; }
.tmpai-cmp__table--hub tbody th { width: 17%; }
.tmpai-cmp__table--hub tbody th a { color: var(--ink); }
.tmpai-cmp__usrow th, .tmpai-cmp__usrow td, .tmpai-cmp__table--hub .tmpai-cmp__usrow td:last-child { background: rgba(88, 180, 229, 0.08); }
.tmpai-cmp__src { font-size: 11px; margin-left: 2px; white-space: nowrap; }
.tmpai-cmp__src a { text-decoration: none; }

.tmpai-cmp__two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 56px; }

/* what the data shows */
.tmpai-cmp__book { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px 28px 20px; }
.tmpai-cmp__figs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px 44px; }
.tmpai-cmp__figs li { display: flex; flex-direction: column; max-width: 230px; }
.tmpai-cmp__n { font-family: var(--serif); font-size: clamp(36px, 4.4vw, 52px); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.tmpai-cmp__figs span:last-child { font-size: 14.5px; color: var(--ink2); margin-top: 6px; }

/* calculators */
.tmpai-cmp__calc { background: var(--ink); color: rgba(255, 253, 248, 0.8); border-radius: 22px; padding: clamp(24px, 4vw, 44px); }
.tmpai-cmp__calc h2 { color: var(--card); }
.tmpai-cmp__calc .tmpai-cmp__eyebrow { color: rgba(255, 253, 248, 0.55); }
.tmpai-cmp__calc .tmpai-cmp__note { color: rgba(255, 253, 248, 0.6); }
.tmpai-cmp__inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 20px 0 22px; }
.tmpai-cmp__inputs label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: rgba(255, 253, 248, 0.75); }
.tmpai-cmp__field { display: flex; align-items: center; gap: 6px; background: rgba(255, 253, 248, 0.08); border: 1px solid rgba(255, 253, 248, 0.2); border-radius: 10px; padding: 0 12px; color: var(--card); font-size: 17px; }
.tmpai-cmp__field:focus-within { border-color: var(--accent); }
.tmpai-cmp__field input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--card); font: inherit; padding: 11px 0; outline: none; box-shadow: none; -moz-appearance: textfield; }
.tmpai-cmp__out { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.tmpai-cmp__out > div { background: rgba(255, 253, 248, 0.06); border: 1px solid rgba(255, 253, 248, 0.14); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; }
.tmpai-cmp__out span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 253, 248, 0.55); }
.tmpai-cmp__out b { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4vw, 46px); line-height: 1.05; color: var(--card); margin-top: 6px; font-variant-numeric: tabular-nums; }
.tmpai-cmp__out small { font-size: 13px; color: rgba(255, 253, 248, 0.6); margin-top: 4px; }
.tmpai-cmp__out p { grid-column: 1 / -1; margin: 4px 0 0; font-size: 17px; color: var(--card); }

/* questions */
.tmpai-cmp__faq { border-top: 1px solid var(--line2); padding: 12px 0; }
.tmpai-cmp__faq:first-of-type { border-top: 0; }
.tmpai-cmp__faq summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; position: relative; padding-right: 28px; }
.tmpai-cmp__faq summary::-webkit-details-marker { display: none; }
.tmpai-cmp__faq summary::after { content: '+'; position: absolute; right: 4px; top: -2px; font-size: 22px; font-weight: 400; color: var(--muted); }
.tmpai-cmp__faq[open] summary::after { content: '–'; }
.tmpai-cmp__faq p { margin: 10px 0 4px; }

/* more */
.tmpai-cmp__others { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tmpai-cmp__others a { display: inline-block; padding: 9px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 15px; }
.tmpai-cmp__others a:hover { border-color: var(--ink); }
.tmpai-cmp__cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tmpai-cmp__cards a { display: flex; flex-direction: column; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; text-decoration: none; color: var(--ink2); transition: border-color .15s ease, transform .15s ease; }
.tmpai-cmp__cards a:hover { border-color: var(--ink); transform: translateY(-1px); }
.tmpai-cmp__cards .tmpai-cmp__eyebrow { margin-bottom: 6px; }
.tmpai-cmp__cards b { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; color: var(--ink); }
.tmpai-cmp__cards small { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.5; }

/* the ask */
.tmpai-cmp__band { margin-top: clamp(48px, 8vh, 88px); background: var(--ink); color: rgba(255, 253, 248, 0.78); }
.tmpai-cmp__band .tmpai-cmp__in { padding-top: clamp(40px, 7vh, 64px); padding-bottom: clamp(40px, 7vh, 64px); }
.tmpai-cmp__band h2 { color: var(--card); }
.tmpai-cmp__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.tmpai-cmp .tmp-btn { display: inline-flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 500; line-height: 1.2; padding: 16px 24px; border-radius: 8px; border: 1px solid var(--ink); background: var(--ink); color: var(--card); text-decoration: none; transition: transform .15s ease, background .15s ease; }
.tmpai-cmp .tmp-btn:hover { transform: translateY(-1px); }
.tmpai-cmp .tmp-btn--accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.tmpai-cmp .tmp-btn--accent:hover { background: #7CC4EB; }
.tmpai-cmp .tmp-btn--ghost-light { background: transparent; color: var(--card); border-color: rgba(255, 253, 248, 0.3); }
.tmpai-cmp .tmp-btn--ghost-light:hover { background: rgba(255, 253, 248, 0.08); }
.tmpai-cmp .tmp-btn:focus-visible, .tmpai-cmp a:focus-visible, .tmpai-cmp summary:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 3px; }

.tmpai-cmp__sources { padding-top: 40px; padding-bottom: 56px; font-size: 14px; }
.tmpai-cmp__sources h2 { font-size: 24px; }
.tmpai-cmp__sources ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 40px; }
.tmpai-cmp__sources li { break-inside: avoid; padding: 3px 0; }
.tmpai-cmp__sources li:target { background: rgba(88, 180, 229, 0.18); }

@media (max-width: 860px) {
	.tmpai-cmp__pick, .tmpai-cmp__two { grid-template-columns: 1fr; }
	.tmpai-cmp__sources ol { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
	.tmpai-cmp .tmp-btn, .tmpai-cmp__cards a { transition: none; }
	.tmpai-cmp .tmp-btn:hover, .tmpai-cmp__cards a:hover { transform: none; }
}
