/*
 * site.css - TrueSens website. Static, pre-rendered pages: no inputs, no client-side logic.
 * Same identity as the app: aluminium plates, graphite ink, one tape-yellow blade, one red index line.
 * Light and dark come only from prefers-color-scheme via ../tokens.css (<html data-site>).
 * Layout: one 1200 px column; the tape blade bleeds edge to edge as the page's signature.
 */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-text); font-size: 16px; line-height: 1.55; color: var(--ink);
  background: var(--bg);
  background-image: repeating-linear-gradient(180deg, var(--bevel-hi) 0 1px, transparent 1px 4px);
  background-size: 100% 4px;
}
a { color: inherit; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--focus-outer); outline-offset: 2px; box-shadow: 0 0 0 2px var(--focus-inner); border-radius: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.eng { font-family: var(--font-text); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; }
h2 { font-size: 34px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; }
.lead { font-size: 18px; line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--ink-3); }
.sec { padding-block: 72px 0; }
.sec-head { display: grid; gap: 10px; margin-bottom: 28px; max-width: 760px; }
.sec-head p { color: var(--ink-2); }
.plate { border-radius: var(--r-2); background: linear-gradient(180deg, var(--plate-hi), var(--plate)); box-shadow: var(--shadow-plate); }

/* ---------- header ---------- */
.site-head { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--plate) 70%, transparent); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; text-decoration: none; }
.logo svg { width: 26px; height: 26px; }
.nav { display: flex; gap: 22px; font-size: 14.5px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.head-r { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* ---------- buttons (links) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 40px; padding: 0 16px; border-radius: var(--r-1); border: 0; font: inherit; font-size: 14.5px; font-weight: 600; text-decoration: none; white-space: nowrap;
  background: linear-gradient(180deg, var(--plate-hi), var(--plate)); color: var(--ink); box-shadow: var(--shadow-key); }
.btn:hover { background: var(--plate-hi); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: linear-gradient(180deg, var(--tape-hi), var(--tape) 55%, #EDB800); color: var(--tape-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 0 0 1px rgba(156, 116, 0, 0.6), 0 1px 2px rgba(120, 90, 0, 0.25); }
.btn-primary:hover { background: linear-gradient(180deg, #FFE16A, var(--tape-hi)); }
.btn-lg { height: 52px; padding: 0 22px; font-size: 16px; }
.btn small { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; opacity: 0.7; }

/* ---------- breadcrumb ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--ink-3); padding-top: 22px; }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-hidden] { color: var(--ink-4); }

/* ---------- answer hero (pair page) ---------- */
.answer { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 22px 48px; align-items: center; padding-top: 26px; }
.answer h1 { grid-column: 1 / -1; font-size: 60px; font-weight: 650; letter-spacing: -0.035em; line-height: 1.02; }
.rule-big { font-family: var(--font-display); font-size: 44px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); }
.rule-big span { color: var(--ink-3); }
.rule-big b { font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.answer .lead { margin-top: 16px; }
.example { padding: 20px 24px 22px; display: grid; gap: 10px; }
.ex-row { display: grid; grid-template-columns: auto auto 1fr; align-items: end; gap: 18px; }
.ex-row .lab { display: block; font-size: 13px; color: var(--ink-3); margin-bottom: 6px; }
.ex-row b { font-family: var(--font-display); font-size: 76px; font-weight: 300; letter-spacing: -0.04em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.ex-row b.to { font-weight: 500; }
.ex-row .arr { font-size: 34px; color: var(--ink-4); padding-bottom: 8px; }
.ex-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.ex-facts div { display: grid; gap: 2px; padding-right: 12px; }
.ex-facts div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.ex-facts b { font-family: var(--font-mono); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ex-facts span { font-size: 12px; color: var(--ink-3); }
.example .own { font-size: 13.5px; color: var(--ink-2); }
.example .own a { font-weight: 600; }

/* ---------- blade band ---------- */
.band { position: relative; margin-top: 44px; height: 170px; overflow: hidden; }
.band svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.band .readout { position: absolute; top: 0; display: flex; gap: 10px; align-items: baseline; transform: translateX(14px); white-space: nowrap; }
.band .readout b { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--index); }
.band .readout span { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.bl-num { font-family: var(--font-mono); font-weight: 600; text-anchor: middle; fill: var(--tape-ink); font-variant-numeric: tabular-nums; }
.bl-in { font-weight: 500; }
.bl-brand { font-family: var(--font-text); font-weight: 700; letter-spacing: 0.24em; fill: var(--tape-ink); opacity: 0.42; }
.fov-t { font-family: var(--font-mono); font-size: 9.5px; fill: var(--ink-3); }

/* ---------- chart table ---------- */
.tbl-wrap { overflow-x: auto; border-radius: var(--r-2); box-shadow: var(--shadow-plate); background: var(--plate); }
table.conv-t { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 600px; }
.conv-t caption { text-align: left; padding: 14px 20px 16px; font-size: 13px; color: var(--ink-3); caption-side: bottom; }
.conv-t th { text-align: right; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); padding: 16px 20px 12px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.conv-t th:first-child, .conv-t td:first-child { text-align: left; }
.conv-t td { font-family: var(--font-mono); font-size: 15px; padding: 9px 20px; border-bottom: 1px solid var(--line); text-align: right; }
.conv-t td.k { font-weight: 700; }
.conv-t tr.hl td { background: var(--plate-hi); box-shadow: inset 0 1px 0 var(--ink), inset 0 -1px 0 var(--ink); }
.conv-t tr.hl td:first-child { box-shadow: inset 0 1px 0 var(--ink), inset 0 -1px 0 var(--ink), inset 4px 0 0 var(--index); }
.chart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.chart-note { display: grid; gap: 14px; font-size: 15px; color: var(--ink-2); }
.chart-note b { color: var(--ink); }
.chart-note .box { padding: 18px 20px; display: grid; gap: 8px; }

/* ---------- spec sheet: multiplier + formula ---------- */
.spec { display: grid; grid-template-columns: 340px minmax(0, 1fr); }
.spec .mult { padding: 28px 30px; border-right: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.spec .mult b { white-space: nowrap; font-family: var(--font-display); font-size: 60px; font-weight: 300; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.spec .mult p { color: var(--ink-2); font-size: 15px; }
.spec dl { margin: 0; padding: 18px 30px; display: grid; grid-template-columns: 170px minmax(0, 1fr); }
.spec dt, .spec dd { padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec dl > :nth-last-child(-n + 2) { border-bottom: 0; }
.spec dt { font-size: 14px; color: var(--ink-3); }
.spec dd { margin: 0; font-family: var(--font-mono); font-size: 14.5px; overflow-x: auto; }
.spec dd small { display: block; font-family: var(--font-text); font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.yaw { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; }
.yaw > article { padding: 24px 28px; display: grid; gap: 12px; align-content: start; }
.yaw > article + article { border-left: 1px solid var(--line); }
.yaw p { font-size: 15px; color: var(--ink-2); }
.yaw-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 12px; align-items: center; font-size: 14px; }
.yaw-row .bar { height: 10px; border-radius: 1px; background: var(--ink); }

/* ---------- method comparison ---------- */
table.meth { width: 100%; border-collapse: collapse; min-width: 640px; }
.meth th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); padding: 16px 18px 12px; border-bottom: 1px solid var(--line-strong); }
.meth td { padding: 10px 18px; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); vertical-align: middle; }
.meth td.n { font-family: var(--font-mono); font-size: 16px; font-weight: 700; color: var(--ink); text-align: right; white-space: nowrap; }
.meth th.n { text-align: right; }
.meth td.d { width: 92px; }
.meth td.d svg { width: 80px; height: 48px; display: block; }
.meth td b { color: var(--ink); font-weight: 600; }
.meth tr.used td { background: var(--plate-hi); }
.meth .tag { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; padding: 2px 6px; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); margin-left: 8px; }

/* ---------- app section ---------- */
.app { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 36px; padding: 36px 36px 36px 40px; align-items: center; }
.app h2 { font-size: 40px; margin-top: 8px; }
.app .intro { margin-top: 12px; color: var(--ink-2); }
.cant { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 0; }
.cant li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.cant li:last-child { border-bottom: 1px solid var(--line); }
.cant li b { color: var(--ink); }
.cant svg { width: 22px; height: 22px; margin-top: 1px; color: var(--ink); }
.get { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.get-note { margin-top: 12px; font-size: 13px; color: var(--ink-3); max-width: 56ch; }
.get-note .mono { display: block; margin: 4px 0; font-size: 12px; color: var(--ink-2); overflow-wrap: anywhere; }
.shot { margin: 0; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-strong), 0 24px 48px -24px rgba(20, 28, 40, 0.45); background: var(--bg); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 10px 14px; font-size: 12.5px; color: var(--ink-3); border-top: 1px solid var(--line); background: var(--plate); }

/* ---------- reverse + related ---------- */
.reverse { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 26px 30px; text-decoration: none; }
.reverse h3 { font-size: 26px; }
.reverse p { color: var(--ink-2); margin-top: 4px; }
.reverse .arrow { width: 52px; height: 52px; border-radius: var(--r-1); display: grid; place-items: center; box-shadow: var(--shadow-key); background: var(--plate-hi); }
.reverse:hover h3 { text-decoration: underline; text-underline-offset: 5px; }
.related { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.related ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 22px; }
.related li a { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 15px; }
.related li a:hover { text-decoration: underline; text-underline-offset: 4px; }
.related li a .x { color: var(--ink-4); }

/* ---------- FAQ ---------- */
.faq { display: grid; max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 18px; padding: 18px 0; font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-weight: 400; color: var(--ink-3); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 70ch; }

/* ---------- footer ---------- */
.site-foot { margin-top: 88px; border-top: 1px solid var(--line-strong); background: var(--bg-deep); padding-block: 48px 40px; }
.foot-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px; }
.foot-grid h4 { margin: 0 0 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.foot-grid a { text-decoration: none; color: var(--ink-2); }
.foot-grid a:hover { color: var(--ink); text-decoration: underline; }
.foot-base { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.foot-base a { color: var(--ink-2); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .answer { grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
  .chart-grid { grid-template-columns: minmax(0, 1fr); }
  .spec { grid-template-columns: minmax(0, 1fr); }
  .spec .mult { border-right: 0; border-bottom: 1px solid var(--line); }
  .yaw { grid-template-columns: minmax(0, 1fr); }
  .yaw > article + article { border-left: 0; border-top: 1px solid var(--line); }
  .app { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .site-head .wrap { height: 56px; gap: 12px; }
  .nav { display: none; }
  .head-r .btn { height: 34px; padding: 0 12px; font-size: 13px; }
  .answer { padding-top: 16px; gap: 18px; }
  .answer h1 { font-size: 36px; }
  .rule-big { font-size: 25px; }
  .answer .lead { font-size: 15.5px; margin-top: 12px; }
  .example { padding: 16px 18px 18px; }
  .ex-row b { font-size: 56px; }
  .ex-row .arr { font-size: 26px; }
  .ex-facts b { font-size: 13.5px; }
  .ex-facts span { font-size: 11px; }
  .band { height: 150px; margin-top: 28px; }
  .band .readout span { display: none; }
  .sec { padding-block: 52px 0; }
  h2 { font-size: 27px; }
  .spec .mult { padding: 22px; }
  .spec .mult b { font-size: 50px; }
  .spec dl { grid-template-columns: minmax(0, 1fr); padding: 6px 22px 16px; }
  .spec dt { border-bottom: 0; padding-bottom: 0; }
  .yaw > article { padding: 22px 20px; }
  .app { padding: 24px 20px; }
  .app h2 { font-size: 29px; }
  .reverse { padding: 20px; }
  .reverse h3 { font-size: 21px; }
  .related { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .related ul { grid-template-columns: minmax(0, 1fr); }
  .faq summary { font-size: 17px; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.cv { object-fit: cover; }
