/* TensorHunter components: hunt the small frictions, catch them, smooth them. Values come from tokens.css; nothing here hard-codes a colour. */

.th-page { background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
.th-wrap { width: min(100% - 2 * clamp(16px, 5vw, 64px), 1120px); margin-inline: auto; }

.th-label { font-family: var(--font-mono); font-size: 11px; line-height: 1.4; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }

.th-link { color: var(--smooth); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .16s ease; }
.th-link:hover { color: var(--smooth-strong); }
.th-arrow { display: inline-block; transition: transform .2s ease; }
a:hover > .th-arrow, a:hover .th-arrow { transform: translateX(4px); }

.th-page a:focus-visible, .th-page button:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 4px; }

/* ---------- buttons ---------- */
.th-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent; font: 600 16px/1 var(--font-sans); text-decoration: none; cursor: pointer; transition: background-color .16s ease, border-color .16s ease, transform .16s ease; }
.th-button--primary { background: var(--smooth); color: var(--on-smooth); }
.th-button--primary:hover { background: var(--smooth-strong); }
.th-button--quiet { background: transparent; color: var(--ink); border-color: var(--ink-muted); }
.th-button--quiet:hover { border-color: var(--ink); }
.th-button:active { transform: translateY(1px); }
.th-button[aria-disabled="true"] { background: var(--surface); color: var(--ink-muted); border-color: var(--line); cursor: not-allowed; }

/* ---------- the friction line ---------- */
.th-line { display: block; width: 100%; height: 56px; overflow: visible; }
.th-line path { fill: none; stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.th-line .rough, .th-mark .rough { stroke: var(--rough); }
.th-line .smooth, .th-mark .smooth { stroke: var(--smooth); }
.th-line .catch, .th-mark .catch { fill: none; stroke: var(--ink); stroke-linecap: square; }
.th-line .catch { stroke-width: 2; }
.th-mark { display: inline-block; width: 30px; height: 20px; flex: none; overflow: visible; }
.th-mark path { fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transition: opacity .25s ease; }
.th-mark .catch { stroke-width: 1.5; stroke-linecap: square; }

/* ---------- header ---------- */
.th-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.th-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 650; font-size: 17px; letter-spacing: -.01em; }
.th-nav { display: flex; gap: clamp(18px, 3vw, 32px); }
.th-nav a { position: relative; color: var(--ink-muted); text-decoration: none; font-size: 15px; padding: 12px 0; transition: color .16s ease; }
.th-nav a:hover { color: var(--ink); }
.th-nav a[aria-current="page"] { color: var(--ink); }
.th-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; border-radius: 2px; background: var(--smooth); }

/* ---------- home: hero ---------- */
.th-hero { padding: clamp(56px, 12vw, 144px) 0 0; text-align: center; }
.th-hero h1 { margin: 0; font-size: clamp(36px, 5.6vw, 68px); line-height: 1.06; font-weight: 650; letter-spacing: -.035em; text-wrap: balance; }
.th-hero h1 .th-hero-sub { display: block; color: var(--ink-muted); font-weight: 400; }
/* the words say it: "small" shrinks, "big" grows; both sit on the baseline */
.th-hero h1 .th-small { font-size: .5em; letter-spacing: -.01em; line-height: 0; }
.th-hero h1 .th-big { font-size: 1.6em; letter-spacing: -.045em; line-height: .95; }
.th-hero p { margin: 32px auto 0; max-width: 34em; font-size: 19px; line-height: 1.6; color: var(--ink-muted); }
.th-hero .th-line { margin: clamp(48px, 8vw, 96px) 0 0; height: 64px; }

/* ---------- home: manifesto ---------- */
.th-manifesto { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 56px); padding: clamp(64px, 9vw, 96px) 0; }
.th-manifesto h2 { margin: 12px 0 0; font-size: 22px; line-height: 1.2; font-weight: 650; letter-spacing: -.015em; }
.th-manifesto p { margin: 10px 0 0; color: var(--ink-muted); font-size: 16px; line-height: 1.65; }
@media (max-width: 760px) { .th-manifesto { grid-template-columns: 1fr; } }

.th-onward { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding: 28px 0 0; border-top: 1px solid var(--line); }
.th-onward a { color: var(--ink); text-decoration: none; font-size: clamp(22px, 3vw, 28px); font-weight: 650; letter-spacing: -.02em; }
.th-onward a:hover { color: var(--smooth); }

/* ---------- products ---------- */
.th-products-head { padding: clamp(48px, 8vw, 96px) 0 32px; }
.th-products-head h1 { margin: 0; font-size: clamp(36px, 5vw, 56px); line-height: 1.04; font-weight: 650; letter-spacing: -.035em; }
.th-products-head p { margin: 16px 0 0; max-width: 34em; font-size: 19px; line-height: 1.6; color: var(--ink-muted); }

.th-filter { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; padding: 0; list-style: none; }
.th-filter button { min-height: 36px; padding: 0 12px; border-radius: 6px; border: 1px solid transparent; background: transparent; color: var(--ink-muted); font: 500 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.th-filter button:hover { color: var(--ink); }
.th-filter button[aria-pressed="true"] { background: var(--surface); color: var(--ink); border-color: var(--line); }

.th-product-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.th-product-list > li { border-bottom: 1px solid var(--line); }
.th-product { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; padding: 24px 12px; margin: 0 -12px; color: var(--ink); text-decoration: none; transition: background-color .2s ease; }
.th-product:hover { background: var(--surface); }
.th-product > .th-label { align-self: start; padding-top: 8px; }
.th-product h3 { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 26px; line-height: 1.15; font-weight: 650; letter-spacing: -.02em; }
.th-product p { margin: 6px 0 0; color: var(--ink-muted); }
.th-product .th-friction { margin-top: 10px; font-size: 14px; color: var(--ink-muted); }
.th-friction s { text-decoration-color: var(--rough); text-decoration-thickness: 1.5px; }
.th-product-side { display: flex; align-items: center; gap: 16px; }
.th-product-side .th-arrow { font-size: 20px; color: var(--ink-muted); }
.th-product:hover .th-arrow { color: var(--smooth); }
/* the row's mark smooths on hover */
.th-product .th-mark .smooth-alt { opacity: 0; stroke: var(--smooth); }
.th-product:hover .th-mark .jag { opacity: 0; }
.th-product:hover .th-mark .smooth-alt { opacity: 1; }
.th-product.is-soon { pointer-events: none; }
.th-product.is-soon h3 { color: var(--ink-muted); }
@media (max-width: 640px) {
  .th-product { grid-template-columns: 1fr; }
  .th-product > .th-label { padding-top: 0; }
}

.th-price { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; font: 500 14px/1 var(--font-sans); white-space: nowrap; }
.th-price--paid { background: var(--smooth-tint); color: var(--smooth); }
.th-price--free { border: 1px solid var(--smooth); color: var(--smooth); }
.th-price--soon { border: 1px dashed var(--ink-muted); color: var(--ink-muted); }

/* ---------- footer ---------- */
.th-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding: 32px 0 48px; margin-top: 64px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.55; color: var(--ink-muted); }
.th-footer p { margin: 0; }
.th-footer a { color: var(--ink-muted); text-underline-offset: 3px; }
.th-footer a:hover { color: var(--ink); }
.th-footer nav { display: flex; gap: 24px; }

@media (prefers-reduced-motion: reduce) {
  .th-page *, .th-page *::before, .th-page *::after { transition: none !important; animation: none !important; }
}
