/* tvremotex.com v3 — "screens in a living room" */
@font-face {
  font-family: "Inter var";
  src: url("/assets/v3/inter-var.woff") format("woff");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --wall: #E7EBEE;
  --paper: #F6F7F8;
  --ink: #19212E;
  --muted: #535D6B;
  --line: #CDD4DB;
  --screen: #141C2B;
  --screen-2: #1D2840;
  --on-screen: #E9EDF3;
  --on-screen-muted: #A9B3C3;
  --amber: #FFB547;
  --amber-ink: #8A5300;
  --sage: #A3BC9C;
  --sage-ink: #3E5A39;
  --link: #2B55A6;
  --cyan: #59B7C8;
  --rose: #D9708F;
  --radius-tv: 22px;
  --radius-tile: 12px;
  --max: 1180px;
  --font: "Inter var", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
}
:lang(zh-Hant) { --font: "Inter var", -apple-system, "PingFang TC", "Noto Sans CJK TC", "Microsoft JhengHei", sans-serif; }
:lang(ja) { --font: "Inter var", -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans CJK JP", "Yu Gothic", sans-serif; }
:lang(ko) { --font: "Inter var", -apple-system, "Apple SD Gothic Neo", "Noto Sans CJK KR", "Malgun Gothic", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--wall); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  font-feature-settings: "cv11", "ss01"; font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.022em; font-variation-settings: "opsz" 32; margin: 0 0 0.5em; }
:lang(zh-Hans) h1, :lang(zh-Hant) h1, :lang(ja) h1, :lang(ko) h1,
:lang(zh-Hans) h2, :lang(zh-Hant) h2, :lang(ja) h2, :lang(ko) h2 { letter-spacing: 0; line-height: 1.3; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 760; text-wrap: balance; }
h2, h3 { text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 720; }
h3 { font-size: 1.2rem; font-weight: 680; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.88em; background: #dfe4e9; padding: 0.1em 0.35em; border-radius: 5px; }
pre { background: var(--screen); color: var(--on-screen); padding: 1rem 1.2rem; border-radius: 12px; overflow-x: auto; font-size: 0.92rem; line-height: 1.55; }
pre code { background: none; padding: 0; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 8px; z-index: 50; }
.skip:focus { top: 1rem; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); line-height: 1.55; color: var(--muted); max-width: 40em; }
.fine { font-size: 0.875rem; color: var(--muted); }
.textlink { font-weight: 600; }

/* ---------- masthead ---------- */
.masthead { position: sticky; top: 0; z-index: 20; background: rgba(231, 235, 238, 0.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.masthead__inner { max-width: var(--max); margin: 0 auto; padding: 0.7rem 1.25rem; display: flex; align-items: center; gap: 1.5rem; }
.logo { display: flex; align-items: center; gap: 0.55rem; color: var(--ink); text-decoration: none; font-weight: 760; font-size: 1.1rem; letter-spacing: -0.02em; }
.logo__mark { width: 34px; height: 28px; }
.logo__frame { fill: var(--screen); }
.logo__stand { fill: var(--screen); }
.bar--1 { fill: var(--amber); } .bar--2 { fill: var(--sage); } .bar--3 { fill: var(--cyan); } .bar--4 { fill: var(--rose); }
.nav { display: flex; gap: 1.15rem; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; font-weight: 560; padding: 0.3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--amber); }
.lang, .menu { position: relative; }
.lang summary, .menu summary { list-style: none; cursor: pointer; font-size: 0.9rem; font-weight: 560; padding: 0.35rem 0.7rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.lang summary::-webkit-details-marker, .menu summary::-webkit-details-marker { display: none; }
.lang ul { position: absolute; right: 0; top: 2.6rem; margin: 0; padding: 0.4rem; list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(20, 28, 43, 0.16); min-width: 12rem; }
.lang li a { display: block; padding: 0.4rem 0.7rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.lang li a:hover, .lang li a[aria-current="true"] { background: var(--wall); }
.menu { display: none; }
.menu nav { position: absolute; right: 0; top: 2.6rem; display: grid; gap: 0.2rem; padding: 0.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; min-width: 13rem; box-shadow: 0 12px 32px rgba(20, 28, 43, 0.16); }
.menu nav a { padding: 0.5rem 0.7rem; color: var(--ink); text-decoration: none; border-radius: 8px; }
.menu nav a:hover { background: var(--wall); }
@media (max-width: 960px) {
  .nav { display: none; }
  .menu { display: block; }
  .lang { margin-left: auto; }
}

/* ---------- layout ---------- */
main { display: block; }
.section, .pagehead, .hero, .band, .article { max-width: var(--max); margin-left: auto; margin-right: auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.section { padding-top: 2.6rem; padding-bottom: 0.6rem; }
.section > p, .section > ul:not(.brandrow):not(.toolrow):not(.doors):not(.features), .section > dl { max-width: 46rem; }
.section__lead { color: var(--muted); max-width: 40em; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; align-items: center; padding-top: 3.5rem; padding-bottom: 3rem; }
.hero h1 { max-width: 12ch; }
:lang(zh-Hans) .hero h1, :lang(zh-Hant) .hero h1, :lang(ja) .hero h1, :lang(ko) .hero h1 { max-width: 14em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 0.5rem; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 2rem; padding-top: 2rem; } }

/* store button */
.store { display: inline-flex; align-items: center; gap: 0.7rem; background: var(--ink); color: #fff; text-decoration: none; font-weight: 640; font-size: 0.98rem; padding: 0.55rem 1.1rem 0.55rem 0.55rem; border-radius: 14px; line-height: 1.2; transition: transform 0.15s ease; }
.store img { width: 40px; height: 40px; border-radius: 10px; }
.store:hover { transform: translateY(-1px); text-decoration: none; }
.store--onDark { background: #fff; color: var(--ink); }
.store--small { font-size: 0.9rem; padding: 0.4rem 0.9rem 0.4rem 0.4rem; }
.store--small img { width: 32px; height: 32px; border-radius: 8px; }

/* ---------- interactive TV ---------- */
.stage { margin: 0; position: relative; padding-bottom: 3.2rem; }
.tv { background: #0B0F17; border-radius: var(--radius-tv); padding: 12px; box-shadow: 0 30px 60px -20px rgba(20, 28, 43, 0.55), 0 0 0 1px rgba(20, 28, 43, 0.25); }
.tv__screen { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--screen); color: var(--on-screen); font-size: clamp(0.55rem, 1.05vw, 0.85rem); }
.tv__stock, .tv__clean { position: absolute; inset: 0; padding: 5% 5.5%; transition: opacity 0.45s ease; }
.tv[data-state="stock"] .tv__clean, .tv[data-state="clean"] .tv__stock { opacity: 0; pointer-events: none; }
.tv__stock { background: #10151f; }
.promo { height: 30%; border-radius: 10px; background: linear-gradient(110deg, #6b2140 0%, #c2462f 45%, #f0a63a 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 3% 4%; margin-bottom: 3.5%; }
.promo__tag { align-self: flex-start; font-size: 0.8em; font-weight: 700; background: rgba(0, 0, 0, 0.45); padding: 0.2em 0.6em; border-radius: 4px; margin-bottom: auto; }
.promo__title { font-size: 1.5em; font-weight: 760; letter-spacing: -0.02em; }
.tv__row-label { margin: 0 0 0.6em; font-weight: 640; font-size: 0.95em; color: var(--on-screen-muted); }
.tv__row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2%; margin-bottom: 3%; }
.poster { aspect-ratio: 3 / 4; border-radius: 6px; background: #2a3550; }
.poster--wide { aspect-ratio: 16 / 9; }
.poster--1 { background: #3b2f5c; } .poster--2 { background: #24506a; } .poster--3 { background: #5a3a2e; } .poster--4 { background: #2f4f3a; } .poster--5 { background: #4b2338; }
.tv__clean { background: radial-gradient(120% 90% at 80% 10%, #3a4f7a 0%, #1b2742 45%, #111a2c 100%); }
.tv__clean::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: linear-gradient(180deg, transparent, rgba(12, 18, 30, 0.55)), radial-gradient(70% 120% at 30% 120%, #1f3a3a 0%, transparent 70%); pointer-events: none; }
.tv__clock { font-size: 3.4em; font-weight: 300; letter-spacing: -0.03em; line-height: 1; margin: 0; font-variation-settings: "opsz" 32; }
.tv__date { color: var(--on-screen-muted); margin: 0.3em 0 2.2em; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 2.4%; position: relative; z-index: 1; }
.tile { aspect-ratio: 16 / 10; border-radius: 9px; background: rgba(255, 255, 255, 0.92); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8%; font-weight: 620; font-size: 0.85em; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.tile.is-focus { transform: scale(1.1); box-shadow: 0 0 0 3px var(--amber), 0 12px 24px rgba(0, 0, 0, 0.45); }
.tile__glyph { width: 32%; aspect-ratio: 1; border-radius: 28%; }
.tile--1 .tile__glyph { background: #E2574C; } .tile--2 .tile__glyph { background: #F29F3D; border-radius: 50%; }
.tile--3 .tile__glyph { background: #4A90D9; } .tile--4 .tile__glyph { background: #5DAA68; }
.tile--5 .tile__glyph { background: #8B6CD9; border-radius: 50%; } .tile--6 .tile__glyph { background: #7B8494; }
.phone { position: absolute; right: -0.5rem; bottom: 0; width: 132px; height: 132px; border-radius: 34px; background: #1E2420; box-shadow: 0 18px 40px -12px rgba(20, 28, 43, 0.6), 0 0 0 6px #2B322D; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 10px; gap: 2px; }
.pad { border: 0; background: #2E3631; color: #DCE7D8; border-radius: 12px; cursor: pointer; font: inherit; font-weight: 700; font-size: 0.8rem; position: relative; }
.pad:hover { background: #3a443d; }
.pad:active { transform: scale(0.95); }
.pad--up { grid-column: 2; grid-row: 1; } .pad--left { grid-column: 1; grid-row: 2; } .pad--ok { grid-column: 2; grid-row: 2; background: var(--sage); color: #1E2420; border-radius: 50%; }
.pad--right { grid-column: 3; grid-row: 2; } .pad--down { grid-column: 2; grid-row: 3; }
.pad--up::after, .pad--down::after, .pad--left::after, .pad--right::after { content: ""; position: absolute; inset: 0; margin: auto; width: 8px; height: 8px; border-top: 2px solid currentColor; border-left: 2px solid currentColor; }
.pad--up::after { transform: translateY(2px) rotate(45deg); } .pad--down::after { transform: translateY(-2px) rotate(225deg); }
.pad--left::after { transform: translateX(2px) rotate(-45deg); } .pad--right::after { transform: translateX(-2px) rotate(135deg); }
.stage__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin-top: 1rem; padding-right: 150px; }
.seg { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; font: inherit; font-size: 0.9rem; font-weight: 600; padding: 0.4rem 0.9rem; border-radius: 999px; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--screen); color: #fff; }
.stage__hint { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 560px) {
  .phone { width: 104px; height: 104px; border-radius: 28px; right: 0; }
  .stage__bar { padding-right: 112px; }
  .stage__hint { display: none; }
  .seg button { font-size: 0.8rem; padding: 0.35rem 0.6rem; }
}

/* ---------- product bands (screens in the room) ---------- */
.band { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem; align-items: center; background: var(--screen); color: var(--on-screen); border-radius: 28px; padding: 3rem; margin-top: 2rem; width: min(calc(100% - 2rem), calc(var(--max) - 2.5rem)); max-width: none; }
.band h2 { color: #fff; }
.band p { color: var(--on-screen-muted); }
.band a:not(.store) { color: #fff; }
.band__kicker { font-weight: 640; font-size: 0.95rem; margin-bottom: 0.6rem; }
.band--homex .band__kicker { color: var(--amber); }
.band--remotex { background: #18211C; }
.band--remotex .band__kicker { color: var(--sage); }
.band__links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: 1.5rem; }
.band__media { display: grid; gap: 1rem; }
.band--homex .band__media { grid-template-columns: 3fr 1fr; align-items: end; }
.band--homex .band__media .phones { display: grid; gap: 0.75rem; overflow: visible; padding: 0; }
.band--homex .band__media .phoneshot { width: 100%; }
.band--homex .band__media .phones .phoneshot:nth-child(2) { display: none; }
.tvshot img { border-radius: 10px; box-shadow: 0 0 0 6px #0B0F17, 0 24px 40px -18px rgba(0, 0, 0, 0.7); }
.ticks { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 0.55rem; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before { content: ""; position: absolute; left: 0.1rem; top: 0.45em; width: 0.7rem; height: 0.38rem; border-left: 2px solid var(--amber); border-bottom: 2px solid var(--amber); transform: rotate(-45deg); }
.band--remotex .ticks li::before { border-color: var(--sage); }
.ticks--plain li::before { border-color: var(--ink); }
.band .ticks li { color: var(--on-screen); }
@media (max-width: 900px) { .band { grid-template-columns: 1fr; padding: 2rem 1.4rem; border-radius: 20px; } }

.phones { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 0.5rem; scroll-snap-type: x mandatory; }
.phones .phoneshot { flex: 0 0 auto; width: min(220px, 44vw); scroll-snap-align: start; }
.phoneshot img { border-radius: 18px; }
.band__media--phones .phones { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; padding: 0; max-width: 560px; margin: 0 auto; }
.band__media--phones .phoneshot { width: 100%; }
.band__media--phones .phoneshot:nth-child(2) { margin-top: 2.5rem; }

/* doors: three meanings of “clean your TV” */
.doors { list-style: none; padding: 0; margin: 1.5rem 0 1rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.door a { display: block; height: 100%; text-decoration: none; color: var(--ink); background: var(--paper); border-radius: var(--radius-tile); padding: 1.4rem 1.4rem 1.2rem; border-top: 6px solid var(--amber); transition: box-shadow 0.15s ease; }
.door--2 a { border-top-color: var(--cyan); } .door--3 a { border-top-color: var(--rose); }
.door a:hover { box-shadow: 0 0 0 3px var(--amber); }
.door p { color: var(--muted); margin: 0; }
@media (max-width: 800px) { .doors { grid-template-columns: 1fr; } }

/* brand row: launcher tiles */
.brandrow { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 0.75rem; }
.brandrow a { display: flex; flex-direction: column; justify-content: space-between; min-height: 92px; padding: 0.9rem 1rem; background: var(--paper); border-radius: var(--radius-tile); color: var(--ink); text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.brandrow a:hover, .brandrow a:focus-visible { transform: scale(1.04); box-shadow: 0 0 0 3px var(--amber), 0 10px 22px rgba(20, 28, 43, 0.14); outline: none; }
.brandrow__name { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.brandrow__os { font-size: 0.82rem; color: var(--muted); }
.brandrow--big a { min-height: 110px; }

/* tools */
.toolrow { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.toolcard { display: block; height: 100%; background: var(--paper); border-radius: var(--radius-tile); padding: 1.2rem; color: var(--ink); text-decoration: none; }
.toolcard:hover { box-shadow: 0 0 0 3px var(--amber); }
.toolcard h2, .toolcard h3 { font-size: 1.15rem; margin: 0.9rem 0 0.3rem; }
.toolcard p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.toolcard__swatch { display: block; height: 70px; border-radius: 8px; }
.toolcard--cleaner .toolcard__swatch { background: linear-gradient(90deg, #000 0 50%, #fff 50% 100%); box-shadow: inset 0 0 0 1px var(--line); }
.toolcard--deadpixel .toolcard__swatch { background: linear-gradient(90deg, #e33 0 25%, #2b2 25% 50%, #23e 50% 75%, #fff 75% 100%); }
.toolcard--size .toolcard__swatch { background: var(--screen); position: relative; }
.toolcard--size .toolcard__swatch::after { content: ""; position: absolute; left: 12%; right: 12%; top: 50%; border-top: 2px dashed var(--amber); }
@media (max-width: 800px) { .toolrow { grid-template-columns: 1fr; } }

/* ---------- page heads ---------- */
.pagehead { padding-top: 2.2rem; padding-bottom: 1rem; }
.pagehead--tvhomex, .pagehead--tvremotex, .pagehead--clean { background: var(--screen); color: var(--on-screen); border-radius: 28px; padding: 2.4rem 3rem 3rem; margin-top: 1.5rem; width: min(calc(100% - 2rem), calc(var(--max) - 2.5rem)); max-width: none; }
.pagehead--tvremotex { background: #18211C; }
.pagehead--clean { background: var(--screen-2); }
.pagehead--tvhomex h1, .pagehead--tvremotex h1, .pagehead--clean h1 { color: #fff; }
.pagehead--tvhomex .lead, .pagehead--tvremotex .lead, .pagehead--clean .lead, .pagehead--tvhomex .fine, .pagehead--tvremotex .fine, .pagehead--clean .byline { color: var(--on-screen-muted); }
.pagehead--tvhomex .crumbs a, .pagehead--tvremotex .crumbs a, .pagehead--clean .crumbs a, .pagehead--tvhomex .crumbs, .pagehead--tvremotex .crumbs, .pagehead--clean .crumbs { color: var(--on-screen-muted); }
.pagehead__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 2.5rem; align-items: center; }
.pagehead__icon { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 1.2rem; }
.pagehead__media .phones { justify-content: center; }
.pagehead--plain h1 { max-width: 22ch; }
:lang(zh-Hans) .pagehead--plain h1, :lang(zh-Hant) .pagehead--plain h1, :lang(ja) .pagehead--plain h1, :lang(ko) .pagehead--plain h1 { max-width: none; }
@media (max-width: 900px) { .pagehead__grid { grid-template-columns: 1fr; } .pagehead--tvhomex, .pagehead--tvremotex, .pagehead--clean { padding: 1.6rem 1.4rem 2rem; border-radius: 20px; } }
.crumbs ol { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; flex-wrap: wrap; gap: 0.3rem; font-size: 0.85rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 0.3rem; opacity: 0.6; }
.crumbs a { color: var(--muted); }
.byline { font-size: 0.9rem; color: var(--muted); }

/* quick answer */
.quick { background: var(--paper); border-left: 6px solid var(--amber); border-radius: 0 var(--radius-tile) var(--radius-tile) 0; padding: 1.2rem 1.5rem; max-width: 46rem; }
.quick .quick__h, .prose .quick .quick__h { margin-top: 0; }
.quick__h { font-size: 0.95rem; font-weight: 700; margin: 0 0 0.4rem; letter-spacing: 0; color: var(--amber-ink); }
.quick p { margin: 0; font-size: 1.05rem; }

/* features, steps, issues */
.features { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem 2rem; }
.features h3 { margin-bottom: 0.3rem; }
.features p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 1rem 0 1.4rem; display: grid; gap: 1rem; max-width: 46rem; }
.steps li { counter-increment: s; position: relative; padding-left: 3rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -0.1rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--screen); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 0.95rem; }
.steps__t { display: block; font-weight: 680; }
.steps__b { display: block; color: var(--muted); }
.issues, .menupath { margin: 1rem 0; display: grid; gap: 1rem; }
.issues div, .menupath div { background: var(--paper); border-radius: var(--radius-tile); padding: 1rem 1.2rem; }
.issues dt { font-weight: 680; }
.issues dd, .menupath dd { margin: 0.25rem 0 0; color: var(--muted); }
.menupath dt { font-size: 0.85rem; color: var(--muted); }
.menupath code { background: none; padding: 0; font-size: 0.95rem; color: var(--ink); white-space: normal; }
.oslist { margin-top: 1.2rem; }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.split__media .phoneshot { width: 100%; max-width: 240px; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } .split__media { display: none; } }

/* tables */
.table-wrap { overflow-x: auto; margin: 1rem 0 1.4rem; border-radius: var(--radius-tile); background: var(--paper); }
table { border-collapse: collapse; width: 100%; font-size: 0.96rem; }
th, td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-weight: 700; background: #dfe4e9; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 640; }

/* app card */
.appcard { display: flex; gap: 1.2rem; align-items: flex-start; background: var(--screen); color: var(--on-screen); border-radius: 20px; padding: 1.4rem; margin: 1.8rem 0; max-width: 46rem; }
.appcard--tvremotex { background: #18211C; }
.appcard img { width: 64px; height: 64px; border-radius: 15px; flex: none; }
.appcard p { color: var(--on-screen-muted); margin: 0 0 0.8rem; }
.appcard .appcard__name { color: #fff; font-weight: 720; font-size: 1.15rem; margin-bottom: 0.2rem; }
.appcard .store { background: #fff; color: var(--ink); }
.appcard .appcard__fine { font-size: 0.82rem; margin: 0.7rem 0 0; }

/* faq */
.faq { max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1rem 2rem 1rem 0; font-weight: 640; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0.4rem; top: 1.3rem; width: 0.55rem; height: 0.55rem; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(225deg); top: 1.55rem; }
.faq details p { color: var(--muted); }

/* lists */
.linklist { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 0.4rem; }
.linklist a { font-weight: 600; }
.guidelist { list-style: none; padding: 0; margin: 1rem 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.guidelist a { display: block; height: 100%; background: var(--paper); border-radius: var(--radius-tile); padding: 1rem 1.2rem; text-decoration: none; color: var(--ink); }
.guidelist a:hover { box-shadow: 0 0 0 3px var(--amber); }
.guidelist__t { display: block; font-weight: 680; margin-bottom: 0.25rem; }
.guidelist__d { display: block; color: var(--muted); font-size: 0.92rem; }
@media (max-width: 760px) { .guidelist { grid-template-columns: 1fr; } }

/* tv screenshot grid */
.tvgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; margin: 1.2rem 0 2rem; }
.tvgrid figure { margin: 0; }
.tvgrid figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.9rem; }
@media (max-width: 760px) { .tvgrid { grid-template-columns: 1fr; } }

/* ---------- articles ---------- */
.article__head { max-width: 50rem; padding-top: 2.2rem; }
.article__head h1 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
.article__grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 3rem; padding-top: 1.5rem; }
.toc { position: sticky; top: 90px; align-self: start; font-size: 0.9rem; }
.toc h2 { font-size: 0.9rem; letter-spacing: 0; color: var(--muted); }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; border-left: 2px solid var(--line); }
.toc a { display: block; padding-left: 0.9rem; color: var(--ink); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; }
.toc a:hover { border-left-color: var(--amber); }
@media (max-width: 960px) { .article__grid { grid-template-columns: 1fr; } .toc { position: static; } }
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol:not(.steps) { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.35rem; }
.callout { background: var(--paper); border-radius: var(--radius-tile); padding: 1rem 1.2rem; margin: 1.2rem 0; border-left: 4px solid var(--cyan); }
.callout--warn { border-left-color: var(--rose); }
.callout p { margin: 0; }
.sources ul { padding-left: 1.2rem; font-size: 0.95rem; }
.related { margin-top: 2rem; }

/* ---------- tools ---------- */
.toolbox { padding-bottom: 1rem; }
.colortool { background: var(--paper); border-radius: 20px; padding: 1.6rem; max-width: 46rem; }
.swatches { border: 0; padding: 0; margin: 0 0 1.2rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.swatches legend { font-weight: 640; margin-bottom: 0.6rem; }
.swatch { font: inherit; font-size: 0.9rem; font-weight: 600; border: 2px solid var(--line); border-radius: 10px; padding: 0.5rem 0.9rem 0.5rem 2.2rem; background: #fff; cursor: pointer; position: relative; color: var(--ink); }
.swatch::before { content: ""; position: absolute; left: 0.6rem; top: 50%; width: 1.1rem; height: 1.1rem; margin-top: -0.55rem; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); }
.swatch[aria-pressed="true"] { border-color: var(--ink); }
.swatch--black::before, .fs--black { background: #000; } .swatch--white::before, .fs--white { background: #fff; }
.swatch--gray::before, .fs--gray { background: #808080; } .swatch--red::before, .fs--red { background: #f00; }
.swatch--green::before, .fs--green { background: #0f0; } .swatch--blue::before, .fs--blue { background: #00f; }
.btn { font: inherit; font-weight: 680; border: 0; border-radius: 12px; background: var(--ink); color: #fff; padding: 0.7rem 1.3rem; cursor: pointer; }
.btn--big { font-size: 1.05rem; padding: 0.85rem 1.6rem; }
.fullscreen { position: fixed; inset: 0; z-index: 100; cursor: none; }
.fullscreen[hidden] { display: none; }
.fullscreen__exit { position: absolute; top: 1rem; right: 1rem; font: inherit; font-size: 0.85rem; border: 0; border-radius: 8px; padding: 0.4rem 0.8rem; background: rgba(128, 128, 128, 0.5); color: #fff; cursor: pointer; opacity: 0; transition: opacity 0.3s; }
.fullscreen.is-awake .fullscreen__exit { opacity: 1; }
.fullscreen.is-awake { cursor: default; }

.calc { background: var(--paper); border-radius: 20px; padding: 1.6rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.4rem; max-width: 52rem; }
.calc__mode { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; font-weight: 600; }
.calc__row { display: grid; gap: 0.35rem; }
.calc__row[hidden], .calc [data-when][hidden] { display: none; }
.calc label { font-weight: 600; font-size: 0.95rem; }
.calc input[type="number"], .calc select { font: inherit; padding: 0.6rem 0.75rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.calc__out { grid-column: 1 / -1; display: block; background: var(--screen); color: var(--on-screen); border-radius: 14px; padding: 1.3rem 1.4rem; }
.calc__out h2 { font-size: 1rem; color: var(--amber); margin-bottom: 0.8rem; }
.calc__out dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 1.4rem; }
.calc__out dt { font-size: 0.85rem; color: var(--on-screen-muted); }
.calc__out dd { margin: 0.15rem 0 0; font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.calc__viz { position: relative; height: 54px; margin-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.calc__sofa { position: absolute; left: 0; bottom: 6px; width: 46px; height: 22px; border-radius: 8px 8px 4px 4px; background: var(--sage); }
.calc__beam { position: absolute; left: 50px; bottom: 16px; height: 0; border-top: 2px dashed var(--amber); width: 40%; }
.calc__tv { position: absolute; bottom: 6px; width: 8px; height: 40px; border-radius: 3px; background: #fff; left: calc(50px + 40%); }
@media (max-width: 640px) { .calc, .calc__out dl { grid-template-columns: 1fr; } }

/* prose sections on about */
.section.prose { max-width: var(--max); }
.section.prose > * { max-width: 46rem; }

/* ---------- footer ---------- */
.foot { background: var(--screen); color: var(--on-screen-muted); margin-top: 4rem; padding: 3rem 1.25rem 2rem; }
.foot__inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2rem; }
.foot h2 { font-size: 0.9rem; letter-spacing: 0; color: #fff; margin-bottom: 0.8rem; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; font-size: 0.92rem; }
.foot a { color: var(--on-screen); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__app { display: grid; grid-template-columns: 32px 1fr; column-gap: 0.75rem; align-items: center; margin-bottom: 1.2rem; }
.foot__app img { border-radius: 8px; grid-row: span 2; }
.foot__app a { font-weight: 700; }
.foot__app span { font-size: 0.88rem; }
.foot__legal { max-width: var(--max); margin: 1.6rem auto 0; font-size: 0.82rem; }
@media (max-width: 900px) { .foot__inner { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
