/* Reframe for YouTube · v3 "Product"
   A software-product landing page in the 4K Video Downloader genre. */

:root {
  --bg: #F5F5F7;
  --surface: #FFFFFF;
  --ink: #1D1D1F;
  --ink-2: #3A3A40;
  --mute: #5B5B63;
  --red: #E8202A;
  --red-d: #C8161F;
  --navy: #0B1430;
  --violet: #5B3FD6;
  --amber: #F6A623;
  --teal: #12A58E;
  --coral: #FF6A4D;
  --pink: #E8457C;
  --blue: #2F6BFF;
  --green: #1FA855;
  --yt-dark: #0F0F0F;
  --r-xl: 36px;
  --r-lg: 24px;
  --r-md: 16px;
  --pad: clamp(16px, 4vw, 48px);
  --max: 1400px;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --text: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--text);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 96px;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); letter-spacing: -.018em; line-height: 1.08; }
h1, h2, h3 { text-wrap: balance; } p { text-wrap: pretty; } .hero__lede, .part__lede, .final p { text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
kbd {
  display: inline-grid; place-items: center; min-width: 1.9em; height: 1.75em; padding: 0 .45em;
  font: 600 .8em/1 var(--mono); color: var(--ink);
  background: #fff; border-radius: 7px;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.14), 0 1px 2px rgba(0,0,0,.12);
  vertical-align: .08em;
}
code { font: 600 .92em var(--mono); background: rgba(0,0,0,.06); padding: .1em .4em; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.ic { width: 1.15em; height: 1.15em; flex: none; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--ink); color: #fff; border-radius: 999px; text-decoration: none; font-weight: 600;
}
.skip:not(:focus) { opacity: 0; pointer-events: none; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--red);
  position: relative; display: inline-flex; align-items: center; gap: .55em;
  padding: .7em 1.25em; border-radius: 999px; border: 0;
  background: var(--b); color: #fff; text-decoration: none;
  font: 700 15px/1 var(--display); letter-spacing: -.01em; white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 24px -10px rgba(232,32,42,.7);
  transition: background .2s, transform .2s var(--ease), box-shadow .2s;
  overflow: hidden; isolation: isolate;
}
.btn::after { /* hover shine */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover { background: var(--red-d); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: scale(.98); }
.btn--sm { font-size: 14px; padding: .65em 1.1em; }
.btn--md { font-size: 15px; }
.btn--xl {
  font-size: clamp(18px, 1.6vw, 22px); padding: .95em 1.6em .95em 1.35em; gap: .6em;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 18px 40px -14px rgba(232,32,42,.75);
}
.btn--xl .ic { width: 1.3em; height: 1.3em; }
.btn--xl small {
  font: 600 .62em/1 var(--text); letter-spacing: 0; padding: .45em .7em; border-radius: 999px;
  background: rgba(255,255,255,.2);
}
.btn--white { --b: #fff; color: var(--red-d); box-shadow: 0 18px 40px -14px rgba(0,0,0,.45); }
.btn--white:hover { background: #fff; color: #9e0f17; }
.btn--white small { background: rgba(232,32,42,.1); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,245,247,.82); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
}
.nav__in { max-width: var(--max); margin: 0 auto; padding: 12px var(--pad); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 19px/1 var(--display); letter-spacing: -.02em; }
.brand img { width: 32px; height: 32px; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  text-decoration: none; font: 600 14.5px/1 var(--text); color: var(--ink-2);
  padding: 10px 14px; border-radius: 999px; transition: background .2s, color .2s;
}
.nav__links a:hover { background: rgba(0,0,0,.06); color: var(--ink); }
.nav .btn { margin-left: 8px; }
@media (max-width: 960px) { .nav__links { display: none; } .nav .btn { margin-left: auto; } }

/* ---------- Shared section heads ---------- */
.eyebrow { font: 700 13px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--red-d); margin-bottom: 22px; }
.eyebrow--light { color: rgba(255,255,255,.78); }
.h2 { font-size: clamp(36px, 5.2vw, 76px); font-weight: 800; }
.h2--light { color: #fff; }
.h3 { font-size: clamp(24px, 2.4vw, 34px); font-weight: 800; }
.lede { font-size: clamp(17px, 1.35vw, 20px); color: var(--mute); max-width: 680px; margin-top: 20px; }
.lede--light { color: rgba(255,255,255,.86); }
.sec-head { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.sec-head--center { text-align: center; }
.sec-head--center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Window frame + switcher ---------- */
.win {
  position: relative; border-radius: 18px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 40px 80px -30px rgba(15,15,40,.45), 0 12px 24px -12px rgba(15,15,40,.25);
}
.win--dark { background: #1b1b1f; }
.win__bar { display: flex; align-items: center; gap: 14px; height: 38px; padding: 0 14px; background: #ececef; }
.win--dark .win__bar { background: #232327; }
.win__dots { display: flex; gap: 7px; }
.win__dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.win__dots i:nth-child(2) { background: #febc2e; }
.win__dots i:nth-child(3) { background: #28c840; }
.win__url {
  flex: 1; max-width: 420px; margin: 0 auto; transform: translateX(-30px);
  text-align: center; font: 500 12.5px/24px var(--text); color: #6b6b73; background: #fff; border-radius: 8px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.win--dark .win__url { background: #16161a; color: #a1a1aa; }
@media (max-width: 560px) { .win__bar { height: 26px; } .win__dots i { width: 8px; height: 8px; } .win__url { font-size: 10.5px; line-height: 18px; transform: none; } }

.sw-stage { display: grid; background: var(--yt-dark); }
.sw-stage > .sw-img { grid-area: 1 / 1; width: 100%; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s .45s; }
.sw-stage > .sw-img img { width: 100%; }
.sw-tabs input, .pages__tabs input, .flip input, .seg input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }

/* Show the image whose index matches the checked radio (up to 5). */
.sw:has(.sw-tabs > label:nth-of-type(1) > input:checked) .sw-stage > .sw-img:nth-child(1),
.sw:has(.sw-tabs > label:nth-of-type(2) > input:checked) .sw-stage > .sw-img:nth-child(2),
.sw:has(.sw-tabs > label:nth-of-type(3) > input:checked) .sw-stage > .sw-img:nth-child(3),
.sw:has(.sw-tabs > label:nth-of-type(4) > input:checked) .sw-stage > .sw-img:nth-child(4),
.sw:has(.sw-tabs > label:nth-of-type(5) > input:checked) .sw-stage > .sw-img:nth-child(5) {
  opacity: 1; visibility: visible; transition: opacity .45s var(--ease), visibility 0s;
}
@supports not selector(:has(*)) { .sw-stage > .sw-img:first-child { opacity: 1; visibility: visible; } }

/* Segmented control */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(0,0,0,.06); position: relative; }
.seg label { position: relative; cursor: pointer; }
.seg span {
  display: block; padding: 10px 18px; border-radius: 999px; font: 600 15px/1.1 var(--text); color: var(--ink-2);
  transition: background .25s, color .25s, box-shadow .25s; position: relative; z-index: 1;
}
.seg label:hover span { color: var(--ink); }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.seg input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
@media (max-width: 480px) { .ex .seg span { padding: 9px 13px; font-size: 14px; } }
.seg--violet { background: rgba(255,255,255,.14); }
.seg--violet span { color: rgba(255,255,255,.9); }
.seg--violet label:hover span { color: #fff; }
.seg--violet input:checked + span { color: var(--violet); }
.js .seg.has-ind input:checked + span { background: transparent; box-shadow: none; }
.seg > .seg__ind { padding: 0; position: absolute; z-index: 0; border-radius: 999px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); pointer-events: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 6.5vw, 112px) var(--pad) 0; text-align: center; }
.hero__head { max-width: 1320px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.hero__icon { width: clamp(80px, 6.4vw, 104px); height: auto; filter: drop-shadow(0 18px 30px rgba(232,32,42,.35)); }
.pill {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 32px;
  padding: 8px 16px 8px 12px; border-radius: 999px; background: #fff;
  font: 600 14px/1 var(--text); color: var(--ink-2); box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.04);
}
.pill__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(31,168,85,.18); }
.hero__title { margin-top: clamp(26px, 2.4vw, 40px); font-size: clamp(46px, 7.4vw, 132px); font-weight: 800; letter-spacing: -.028em; line-height: 1.02; }
.hero__lede { margin-top: clamp(26px, 2.4vw, 40px); font-size: clamp(18px, 1.6vw, 23px); line-height: 1.5; color: var(--mute); max-width: 760px; }
.hero__lede strong { color: var(--ink); font-weight: 650; white-space: nowrap; }
.hero__cta { margin-top: clamp(36px, 3.2vw, 52px); display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero__note { font: 500 14.5px/1.4 var(--text); color: var(--mute); }
.hero__note a { color: var(--ink-2); text-underline-offset: 3px; }
.credit { margin-top: 26px; font-size: 14.5px; color: var(--mute); }
.credit a, .foot a, .contrast a, .qa a { color: var(--ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: rgba(232,32,42,.55); transition: text-decoration-color .2s; }
.credit a:hover, .foot a:hover, .contrast a:hover, .qa a:hover { text-decoration-color: var(--red); }

.hero__plate {
  position: relative; max-width: 1560px; margin: clamp(64px, 6.5vw, 112px) auto 0;
  padding: clamp(14px, 4.4vw, 76px) clamp(10px, 4.4vw, 76px) clamp(18px, 3vw, 44px);
  border-radius: var(--r-xl); overflow: hidden; isolation: isolate;
  perspective: 1600px;
}
.wall { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.wall--hero { background: linear-gradient(135deg, #ff4b3e 0%, #e8202a 30%, #a51a6b 62%, #4b2bd1 100%); }
.wall i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .85; }
.wall--hero i:nth-child(1) { width: 60%; aspect-ratio: 1; left: -12%; top: -30%; background: #ffb347; }
.wall--hero i:nth-child(2) { width: 55%; aspect-ratio: 1; right: -14%; top: 10%; background: #7b5cff; }
.wall--hero i:nth-child(3) { width: 50%; aspect-ratio: 1; left: 30%; bottom: -40%; background: #ff3d7f; }
.hero__win { transform-origin: 50% 100%; }

.thumbs { display: flex; justify-content: center; gap: clamp(8px, 1.4vw, 18px); margin-top: clamp(24px, 3vw, 44px); flex-wrap: wrap; }
.thumbs label { cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; width: clamp(72px, 11vw, 168px); }
.thumbs__img { display: block; width: 100%; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 2px rgba(255,255,255,.25); transition: box-shadow .25s, transform .25s var(--ease); }
.thumbs__txt { font: 600 14px/1.1 var(--text); color: rgba(255,255,255,.86); }
.thumbs label:hover .thumbs__img { transform: translateY(-3px); }
.thumbs input:checked ~ .thumbs__img { box-shadow: 0 0 0 3px #fff, 0 10px 24px -8px rgba(0,0,0,.5); }
.thumbs input:checked ~ .thumbs__txt { color: #fff; }
.thumbs input:focus-visible ~ .thumbs__img { outline: 3px solid #fff; outline-offset: 4px; }
@media (max-width: 560px) { .thumbs__txt { font-size: 12px; } .thumbs label { width: calc(25% - 8px); } }

/* ---------- Facts band ---------- */
.facts { max-width: var(--max); margin: 0 auto; padding: clamp(88px, 9.5vw, 160px) var(--pad) 0; text-align: center; }
.facts__row { display: grid; grid-template-columns: repeat(6, auto); justify-content: space-between; gap: 28px 12px; }
@media (max-width: 1280px) { .facts__row { grid-template-columns: repeat(3, auto); justify-content: space-evenly; gap: 36px 20px; } }
@media (max-width: 640px) { .facts__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 4px; } .laurel p { min-width: 0; } .laurel svg { width: 18px; height: 60px; } }
.laurel { display: flex; align-items: center; gap: 4px; color: #b9a46a; }
.laurel svg { width: 26px; height: 78px; flex: none; }
.laurel__r { transform: scaleX(-1); }
.laurel { justify-content: center; }
.laurel p { display: flex; flex-direction: column; align-items: center; min-width: 110px; text-align: center; }
.laurel b { font: 800 clamp(19px, 1.6vw, 27px)/1.1 var(--display); letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.laurel p > span { margin-top: 6px; font: 500 13.5px/1.3 var(--text); color: var(--mute); }
.facts__note { margin-top: 48px; font-size: 14px; color: var(--mute); }

/* ---------- How it works ---------- */
.how { padding: clamp(110px, 12vw, 200px) var(--pad) 0; }
.how__field {
  max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7.5vw, 120px) clamp(26px, 6vw, 104px);
  border-radius: var(--r-xl); color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, #e0452f 0%, transparent 55%), linear-gradient(120deg, #c8382a 0%, #b0205a 100%);
}
.how__title { font-size: clamp(34px, 4.6vw, 64px); font-weight: 800; }
.how__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(36px, 5vw, 88px); margin-top: clamp(48px, 5.5vw, 88px); counter-reset: s; }
.how__n { display: block; font: 800 clamp(96px, 12vw, 190px)/.8 var(--display); letter-spacing: -.04em; color: rgba(255,255,255,.22); margin-bottom: 26px; }
.how__steps h3 { font-size: clamp(22px, 2vw, 30px); font-weight: 800; }
.how__steps p { margin-top: 14px; color: rgba(255,255,255,.92); max-width: 360px; }
@media (max-width: 820px) { .how__steps { grid-template-columns: 1fr; } .how__steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; } .how__n { grid-row: span 2; font-size: 88px; margin: 0; } }

/* ---------- Part headers ---------- */
.part { max-width: var(--max); margin: 0 auto; padding: clamp(130px, 14vw, 240px) var(--pad) clamp(56px, 6vw, 96px); }
.part__title { font-size: clamp(44px, 7.4vw, 120px); font-weight: 800; letter-spacing: -.028em; line-height: 1.02; max-width: 14ch; }
.part__title--two { max-width: none; font-size: clamp(34px, 6.6vw, 112px); }
.part__lede { margin-top: clamp(26px, 2.4vw, 40px); font-size: clamp(18px, 1.5vw, 22px); color: var(--mute); max-width: 620px; }

/* ---------- Feature explorer ---------- */
.ex { --nav: 59px; padding: 0 var(--pad); overflow-x: clip; }
.ex__head { max-width: 1560px; margin: 0 auto; padding: clamp(130px, 14vw, 240px) 0 clamp(40px, 4vw, 64px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 64px; }
.ex__head .part__lede { margin: 0 0 .5em; max-width: 440px; }
.ex__bar {
  position: sticky; top: var(--nav); z-index: 40; margin: 0 calc(-1 * var(--pad)); padding: 10px var(--pad);
  background: rgba(245,245,247,.86); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
}
.ex__tabs {
  display: flex; gap: 4px; max-width: 1560px; margin: 0 auto; padding: 6px; border-radius: 999px; background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 12px 30px -18px rgba(15,15,40,.35);
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
}
.ex__tabs::-webkit-scrollbar { display: none; }
.ex__tab {
  position: relative; flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 20px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  font: 700 15.5px/1 var(--display); letter-spacing: -.01em; color: var(--ink-2); transition: color .3s, background .2s;
}
.ex__tab > * { position: relative; z-index: 1; }
.ex__tab .ic { width: 20px; height: 20px; color: var(--red); transition: color .3s; }
.ex__tab:hover { background: rgba(0,0,0,.05); }
.ex__tab[aria-selected="true"] { color: #fff; background: transparent; }
.ex__tab[aria-selected="true"] .ic { color: #fff; }
.ex__tab:focus-visible { outline-offset: -3px; border-radius: 999px; }
.ex__tab > .ex__ind { position: absolute; z-index: 0; inset: 0; border-radius: 999px; background: var(--ink); overflow: hidden; pointer-events: none; box-shadow: 0 8px 18px -8px rgba(0,0,0,.5); }
.ex__prog { position: absolute; left: 22px; right: 22px; bottom: 5px; height: 3px; border-radius: 3px; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; }
.ex__panels { position: relative; max-width: 1560px; margin: 18px auto 0; }
.ex__panel { scroll-margin-top: 150px; }
.ex__panel:focus { outline: none; }
.ex__panel:focus-visible > .ex__field { outline: 3px solid var(--blue); outline-offset: 4px; }
.ex__panel + .ex__panel { margin-top: clamp(40px, 4vw, 64px); }
.ex.is-tabs .ex__panel + .ex__panel { margin-top: 0; }
.ex.is-tabs .ex__panel:not(.is-active):not(.is-leaving) { display: none; }
.ex.is-tabs .ex__panel.is-leaving { position: absolute; inset: 0 0 auto; pointer-events: none; }

.ex__field {
  position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(280px, 3.3fr) minmax(0, 8.7fr);
  gap: clamp(28px, 3vw, 56px); align-items: center; padding: clamp(28px, 2.6vw, 48px); border-radius: var(--r-xl);
}
.ex.is-tabs .ex__field { min-height: clamp(600px, calc(100vh - 170px), 920px); }
.ex__txt { min-width: 0; }
.ex__media { min-width: 0; }
.ex__title { font-size: clamp(30px, 2.7vw, 48px); font-weight: 800; letter-spacing: -.022em; line-height: 1.06; }
.ex__lede { margin-top: 18px; font-size: clamp(16px, 1.1vw, 18px); color: var(--mute); }
.ex__field--tv { color: #fff; overflow: hidden; background: linear-gradient(180deg, #0B1430 0%, #101c44 55%, #0B1430 100%); }
.ex__field--light { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 30px 60px -40px rgba(15,15,40,.3); }
.ex__field--warm { background: radial-gradient(70% 90% at 0% 0%, #ffe2b0, transparent 65%), radial-gradient(60% 80% at 100% 100%, #ffd2c6, transparent 70%), #fff3e4; }
.ex__field--violet { color: #fff; background: radial-gradient(70% 60% at 100% 0%, rgba(232,69,124,.55), transparent 70%), radial-gradient(60% 60% at 0% 100%, rgba(47,107,255,.5), transparent 70%), linear-gradient(135deg, #5b3fd6, #4527b8); }
.ex__field--mint { background: radial-gradient(70% 90% at 100% 0%, #bdeedf, transparent 65%), radial-gradient(60% 80% at 0% 100%, #d6e3ff, transparent 70%), #e8f7f2; }
.ex__field--dark { color: #fff; background: radial-gradient(60% 70% at 100% 0%, rgba(232,32,42,.22), transparent 70%), linear-gradient(180deg, #1c1c21, #121215); }
.ex__field--tv .ex__lede, .ex__field--violet .ex__lede, .ex__field--dark .ex__lede { color: rgba(255,255,255,.84); }
.ex__field--dark .eyebrow--light { color: #ff7a80; }
@media (max-width: 900px) {
  .ex__field { grid-template-columns: 1fr; padding: 22px 16px 26px; border-radius: var(--r-lg); gap: 24px; }
  .ex.is-tabs .ex__field { min-height: 0; }
  .ex__txt { padding: 6px 6px 0; }
  .ex__head { padding-bottom: 20px; }
  .ex__tab { flex: none; padding: 11px 16px; font-size: 14.5px; gap: 8px; }
  .ex__tab .ic { width: 18px; height: 18px; }
  .ex__panel { scroll-margin-top: 130px; }
}

/* TV panel */
.tv__glow { position: absolute; z-index: -1; inset: -20% -10% auto; height: 80%; background: radial-gradient(50% 50% at 60% 50%, rgba(232,32,42,.45), transparent 70%), radial-gradient(40% 40% at 85% 30%, rgba(91,63,214,.5), transparent 70%); filter: blur(30px); }
.ex__field--tv kbd { background: #1d2a55; color: #fff; box-shadow: inset 0 -2px 0 rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.14); }
.tv__stage { position: relative; }
.ex__field--tv { row-gap: clamp(18px, 1.6vw, 28px); }
@media (min-width: 901px) { .tv__stage { width: 100%; max-width: 940px; justify-self: end; } }
.tv__set { margin: 0; }
.tv__screen { padding: clamp(6px, .6vw, 10px); background: #05070f; border-radius: clamp(12px, 1.4vw, 20px); box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 60px 120px -40px rgba(232,32,42,.55), 0 30px 60px -20px rgba(0,0,0,.6); }
.tv__screen img { border-radius: clamp(6px, .8vw, 11px); width: 100%; }
.tv__stand { width: 22%; height: clamp(8px, 1vw, 16px); margin: 0 auto; background: linear-gradient(#1a2347, #0b1022); border-radius: 0 0 14px 14px; }
.tv__pad { position: absolute; width: clamp(120px, 21%, 260px); right: -1%; bottom: -9%; filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)); }
.tv__moments { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.4vw, 40px); margin-top: clamp(8px, 1vw, 16px); }
.moment > div:first-child { height: 64px; display: flex; align-items: center; }
.moment h4 { margin: 14px 0 0; font: 750 19px/1.2 var(--display); letter-spacing: -.02em; }
.moment p { margin-top: 6px; color: rgba(255,255,255,.78); font-size: 15px; line-height: 1.5; }
.tv__tm { grid-column: 1 / -1; font-size: 12.5px; color: rgba(255,255,255,.55); }
@media (max-width: 1000px) { .tv__moments { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .tv__pad { position: relative; right: auto; bottom: auto; width: 52%; margin: -10px auto 0; } }
@media (max-width: 520px) { .tv__moments { grid-template-columns: 1fr; } }

.cw { gap: 10px; }
.cw__t { position: relative; width: 31%; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, #2b3a74, #6b3fa0); }
.cw__t:nth-child(2) { background: linear-gradient(135deg, #a33b2b, #e8902a); }
.cw__t:nth-child(3) { background: linear-gradient(135deg, #0f6b5e, #2f6bff); }
.cw__t::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.25); }
.cw__t i { position: absolute; z-index: 1; left: 0; bottom: 0; height: 4px; width: calc(var(--p) * 100%); background: #ff1e2b; transform-origin: 0 50%; }

.ring { position: relative; width: 64px; height: 64px; }
.ring svg { width: 64px; height: 64px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring__bg { stroke: rgba(255,255,255,.14); }
.ring__fg { stroke: #ff1e2b; stroke-linecap: round; }
.ring__n { position: absolute; inset: 0; display: grid; place-items: center; font: 800 26px/1 var(--display); }

.osk { flex-direction: column; align-items: stretch !important; justify-content: center; gap: 5px; }
.osk__q { display: block; padding: 5px 10px; border-radius: 7px; background: rgba(255,255,255,.1); font: 600 12.5px/1 var(--mono); }
.osk__q::after { content: "|"; margin-left: 2px; color: #ff1e2b; }
.osk__keys { display: grid; grid-template-columns: repeat(14, 1fr); gap: 3px; min-height: 33px; }
.osk__keys span { display: grid; place-items: center; height: 15px; border-radius: 4px; background: rgba(255,255,255,.1); font: 600 9.5px/1 var(--mono); color: rgba(255,255,255,.8); }
.osk__keys span.on { background: #fff; color: var(--navy); }

.pre { position: relative; }
.pre__bar { position: relative; display: block; height: 60px; aspect-ratio: 16/9; border-radius: 9px; background: linear-gradient(135deg, #3a2bd1, #e8202a); box-shadow: 0 0 0 3px #fff; }
.pre__play { position: absolute; left: 53px; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(0,0,0,.45); }
.pre__play::before, .pre__play::after { content: ""; position: absolute; top: 10px; width: 4px; height: 14px; background: #fff; border-radius: 2px; left: 11px; }
.pre__play::after { left: 19px; }

.tv__keys { margin-top: 32px; }
.seg--tv { background: rgba(255,255,255,.1); flex-wrap: nowrap; }
.seg--tv span { color: rgba(255,255,255,.82); padding: 10px 16px; white-space: nowrap; font-size: 14.5px; }
.seg--tv label:hover span { color: #fff; }
.seg--tv input:checked + span { color: #0b1022; }
.padset { display: none; flex-wrap: wrap; gap: 8px; margin-top: 18px; max-width: 560px; }
.pads:has(label:nth-of-type(1) input:checked) .padset:nth-child(2),
.pads:has(label:nth-of-type(2) input:checked) .padset:nth-child(3),
.pads:has(label:nth-of-type(3) input:checked) .padset:nth-child(4) { display: flex; }
.keyset { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.08); }
.keyset__k { display: inline-flex; gap: 3px; }
.keyset kbd { font-size: 13px; height: 28px; min-width: 28px; }
.keyset > span:last-child { font-weight: 600; font-size: 14px; white-space: nowrap; }
.pb { display: inline-grid; place-items: center; height: 28px; min-width: 28px; border-radius: 999px; font: 700 13px/1 var(--text); color: #fff; background: #1d2a55; box-shadow: inset 0 -2px 0 rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.14); }
.pb--pill { padding: 0 10px; font-size: 12px; letter-spacing: .02em; }
.pb svg { width: 16px; height: 16px; fill: currentColor; }
.pb--ps { font-size: 15px; background: #0e1430; }
.pb--cross { color: #8fb8ff; } .pb--circle { color: #ff7b8a; font-size: 17px; }
.pb--xb { font-weight: 800; font-size: 14px; color: #0b1022; }
.pb--a { background: #5fd38a; } .pb--b { background: #ff6b6b; }

/* Layouts + Views (page tabs inside the text column) */
.pages__tabs { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: clamp(22px, 2.4vw, 36px); }
.pages__tabs label { cursor: pointer; position: relative; }
.pages__tabs span { display: block; font: 800 clamp(24px, 2.2vw, 36px)/1.15 var(--display); letter-spacing: -.03em; color: #aeaeb7; transition: color .25s; padding-bottom: 4px; }
.pages__tabs label:hover span { color: var(--ink-2); }
.pages__tabs input:checked + span { color: var(--ink); }
.pages__tabs span::after { content: ""; display: block; height: 5px; margin-top: 4px; border-radius: 3px; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease); }
.pages__tabs input:checked + span::after { transform: scaleX(1); }
.pages__tabs input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 6px; }
.pages__tabs--ic { gap: 12px; }
.pages__tabs--ic span { display: flex; align-items: center; gap: 14px; padding: 0; }
.pages__tabs--ic span::after { display: none; }
.pages__tabs--ic input:not(:checked) + span .row__ic { filter: grayscale(1); opacity: .4; }
.pages__panel { display: none; }
.pages:has(.pages__tabs label:nth-child(1) input:checked) .pages__panels > .pages__panel:nth-child(1),
.pages:has(.pages__tabs label:nth-child(2) input:checked) .pages__panels > .pages__panel:nth-child(2),
.pages:has(.pages__tabs label:nth-child(3) input:checked) .pages__panels > .pages__panel:nth-child(3),
.pages:has(.pages__tabs label:nth-child(4) input:checked) .pages__panels > .pages__panel:nth-child(4) { display: block; }
@supports not selector(:has(*)) { .pages__panels > .pages__panel:first-child { display: block; } }
.pages__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-bottom: 18px; min-height: 52px; }
.pages__note { flex: 1 1 260px; max-width: 520px; font-size: 15px; line-height: 1.45; color: var(--mute); }
.cols__slider { width: 210px; border-radius: 12px; box-shadow: 0 10px 30px -14px rgba(0,0,0,.35); }
.pages__bar .seg span { min-width: 52px; text-align: center; }
@media (max-width: 900px) {
  .pages__tabs { flex-direction: row; flex-wrap: wrap; gap: 4px 18px; }
  .pages__tabs span { font-size: 22px; }
  .pages__tabs--ic .row__ic { width: 40px; height: 40px; border-radius: 13px; }
  .pages__tabs--ic .row__ic .ic { width: 20px; height: 20px; }
  .cols__slider { display: none; }
}

.row__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 17px; color: #fff; flex: none; }
.row__ic .ic { width: 24px; height: 24px; }
.row__ic--amber { background: #e2850c; }
.row__ic--teal { background: var(--teal); }
.row__ic--coral { background: #e04a3a; }
.gl { display: inline-flex; gap: 6px; padding: 5px; border-radius: 16px; background: rgba(0,0,0,.07); }
.gl label { cursor: pointer; }
.gl span { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 12px; font: 600 15px/1 var(--text); color: var(--ink-2); transition: background .25s, color .25s, box-shadow .25s; }
.gl input:checked + span { background: var(--ink); color: #fff; box-shadow: 0 6px 14px -6px rgba(0,0,0,.45); }
.gl input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Subscriptions */
.ex__field--violet .seg { flex-wrap: nowrap; margin-bottom: 20px; }
.ex__field--violet .seg span { white-space: nowrap; }
@media (max-width: 480px) { .ex .subs__seg span { padding: 9px 10px; font-size: 13.5px; } .ex .subs__seg { gap: 0; } }
.subs__facts { display: flex; flex-wrap: wrap; gap: 18px 36px; margin-top: 22px; }
.chipset { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chipset p { font: 700 12.5px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.75); margin-right: 4px; }
.chip { display: inline-block; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.16); font: 600 14px/1 var(--text); }
.chipset .chip:first-of-type { background: #fff; color: var(--violet); }
.subs__extra { display: grid; gap: 12px; margin-top: 28px; font-size: 15.5px; color: rgba(255,255,255,.88); }
.subs__extra p { padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.1); }
.subs__extra b { color: #fff; }

/* Watch Later */
.sorts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 26px 0 26px; }
.sorts li { display: flex; align-items: center; gap: 10px; min-width: 0; font: 700 16px/1.2 var(--display); letter-spacing: -.01em; }
.sorts b { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 10px; background: var(--ink); color: #fff; font-size: 14px; }
.sorts li:nth-child(odd) b { background: var(--red); }
.wl__stage { background: transparent; align-items: start; }
.wl__shot { margin: 0; }
.wl__shot figcaption { margin-top: 12px; font-size: 14.5px; color: var(--mute); }
.ex__field--mint .seg { background: rgba(0,0,0,.07); }
.mock__label { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.mock__label p { color: var(--mute); font-size: 15px; line-height: 1.5; max-width: 760px; }
.mock__label b { color: var(--ink); }
.mock__tag, .stage__tag { flex: none; padding: 7px 12px; border-radius: 8px; background: var(--amber); color: #1d1d1f; font: 800 12.5px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; transform: rotate(-3deg); margin-top: 2px; }
.mock__app {
  position: relative; background: var(--yt-dark); color: #f1f1f1; border-radius: 20px;
  padding: clamp(16px, 2vw, 28px); box-shadow: 0 40px 80px -30px rgba(0,0,0,.55);
  font-family: "Roboto", var(--text);
}
.ex.is-tabs .mock__app { display: flex; flex-direction: column; max-height: min(560px, 62vh); }
.ex.is-tabs .mock__list { overflow-y: auto; min-height: 0; overscroll-behavior: contain; scrollbar-color: #3a3a3a transparent; padding-right: 4px; }
.ex.is-tabs .mock__foot { margin-top: 12px; }
.mock__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: space-between; }
.mock__h { font: 800 clamp(22px, 2vw, 30px)/1.1 var(--display); color: #fff; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.mock__count { font: 500 15px/1 var(--text); color: #aaa; letter-spacing: 0; }
.mock__tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mbtn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 999px;
  background: #272727; color: #f1f1f1; font: 600 14.5px/1 var(--text); cursor: pointer; transition: background .2s;
}
.mbtn:hover { background: #3a3a3a; }
.mbtn[aria-expanded="true"], .mbtn[aria-pressed="true"] { background: #f1f1f1; color: #0f0f0f; }
.mbtn--icon { width: 40px; padding: 0; justify-content: center; }
.mbtn--red { background: #e8202a; color: #fff; }
.mbtn--red:hover { background: #c8161f; }
.mbtn:disabled { opacity: .45; cursor: not-allowed; }
.mbtn:focus-visible, .mchip:focus-visible, .menu__list button:focus-visible, .vid__ck:focus-visible { outline: 3px solid #7aa7ff; outline-offset: 2px; }
.mseg { display: inline-flex; gap: 4px; padding: 0; }
.menu { position: relative; }
.menu__list {
  position: absolute; z-index: 5; top: calc(100% + 8px); left: 0; min-width: 220px; padding: 8px;
  background: #282828; border-radius: 14px; box-shadow: 0 20px 40px rgba(0,0,0,.5);
}
.menu__list[hidden] { display: none; }
.menu__list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 9px; background: none; color: #f1f1f1; font: 500 15px/1.2 var(--text); text-align: left; cursor: pointer; }
.menu__list button::before { content: ""; width: 16px; height: 16px; flex: none; }
.menu__list button[aria-checked="true"]::before { background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.menu__list button:hover, .menu__list button:focus { background: #3a3a3a; outline: none; }
.mock__filters { margin-top: 16px; }
.mock__filters[hidden], .mock__batch[hidden], .mock__empty[hidden] { display: none; }
.mchips { display: flex; flex-wrap: wrap; gap: 8px; }
.mchip { height: 34px; padding: 0 14px; border: 0; border-radius: 9px; background: #272727; color: #f1f1f1; font: 600 14px/1 var(--text); cursor: pointer; }
.mchip:hover { background: #3a3a3a; }
.mchip[aria-pressed="true"] { background: #f1f1f1; color: #0f0f0f; }
.mock__batch { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 20px; border-radius: 999px; background: #1f1f1f; }
.mock__batch p { font-weight: 600; }
.mock__list { margin-top: 20px; display: grid; gap: 12px; }
.mock__app[data-view="grid"] .mock__list { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px 14px; }
.vid { position: relative; display: grid; grid-template-columns: clamp(130px, 14vw, 200px) 1fr; gap: 16px; align-items: start; border-radius: 14px; padding: 6px; transition: background .2s; }
.vid:hover { background: #1c1c1c; }
.mock__app[data-view="grid"] .vid { grid-template-columns: 1fr; gap: 10px; }
.vid__th {
  position: relative; display: block; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden;
  background: radial-gradient(80% 90% at 20% 20%, hsl(calc(var(--h) + 40) 85% 62%), transparent 60%), linear-gradient(135deg, hsl(var(--h) 70% 42%), hsl(calc(var(--h) + 70) 70% 26%));
}
.vid__th::after { content: ""; position: absolute; left: 34%; top: 26%; width: 32%; height: 48%; border-radius: 50%; background: rgba(255,255,255,.14); }
.vid__d { position: absolute; right: 6px; bottom: 6px; z-index: 1; padding: 3px 5px; border-radius: 5px; background: rgba(0,0,0,.8); font: 600 12px/1 var(--text); color: #fff; }
.vid__m { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vid__m b { font: 600 16px/1.35 var(--text); color: #f1f1f1; }
.vid__m > span { font-size: 13.5px; color: #aaa; line-height: 1.4; }
.vid__topic { align-self: flex-start; margin-top: 2px; padding: 3px 8px; border-radius: 6px; background: #272727; font: 600 11.5px/1.2 var(--text); color: #ccc; }
.vid__ck {
  position: absolute; z-index: 2; left: 14px; top: 14px; width: 28px; height: 28px; border-radius: 8px; border: 2px solid #fff;
  background: rgba(0,0,0,.55); color: transparent; display: none; place-items: center; cursor: pointer; padding: 0;
}
.vid__ck .ic { width: 18px; height: 18px; }
.vid__ck[aria-checked="true"] { background: #3ea6ff; border-color: #3ea6ff; color: #0f0f0f; }
.mock__app.is-selecting .vid__ck { display: grid; }
.mock__app.is-selecting .vid.is-sel { background: #1a2a3d; }
.mock__empty { margin-top: 24px; color: #aaa; }
.linkbtn { border: 0; background: none; padding: 0; color: #3ea6ff; font: 600 15px var(--text); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.mock__foot { margin-top: 20px; text-align: right; }
html:not(.js) .mock__tools, html:not(.js) .mock__foot { display: none; }
/* Without JS both Watch Later views show, one after the other. */
html:not(.js) .wl__stage { display: grid; gap: 28px; }
html:not(.js) .wl__stage > .sw-img { grid-area: auto; opacity: 1; visibility: visible; }
html:not(.js) .ex__field--mint .seg { display: none; }
@media (max-width: 560px) { .vid { grid-template-columns: 120px 1fr; gap: 12px; } .vid__m b { font-size: 14.5px; } .mbtn { height: 38px; padding: 0 13px; font-size: 14px; } .mbtn--icon { width: 38px; padding: 0; } .sorts li { font-size: 14.5px; } }

/* Clean-up keys */
.ex__field--dark kbd { background: #2c2c33; color: #fff; box-shadow: inset 0 -2px 0 rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.14); }
.board { margin-top: 26px; padding: 16px; border-radius: 24px; background: linear-gradient(180deg, #2a2a30, #1b1b20); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08); }
.board__mods { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: #8a8a93; font: 800 20px/1 var(--display); }
.board__keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cap {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
  min-width: 0; min-height: 76px; padding: 10px; border: 0; border-radius: 13px; cursor: pointer; text-align: left;
  background: linear-gradient(180deg, #3b3b43, #2f2f36); color: #fff;
  box-shadow: inset 0 -5px 0 rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.12), 0 2px 4px rgba(0,0,0,.4);
  transition: transform .12s, box-shadow .12s, background .25s;
}
.cap b { font: 800 24px/1 var(--display); }
.cap span { font: 600 11px/1.2 var(--text); letter-spacing: -.01em; color: #c5c5cc; overflow-wrap: normal; hyphens: auto; }
.cap--wide { grid-column: span 2; min-height: 58px; flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; }
.cap:hover { background: linear-gradient(180deg, #45454e, #36363e); }
.cap:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 rgba(0,0,0,.35), 0 1px 2px rgba(0,0,0,.4); }
.cap[aria-pressed="true"] { background: linear-gradient(180deg, #ff3b44, #d1141d); box-shadow: inset 0 -5px 0 rgba(0,0,0,.25), 0 0 24px rgba(232,32,42,.55); }
.cap[aria-pressed="true"] span { color: #fff; }
.cap--mod { min-height: 0; padding: 8px 12px; display: inline-block; cursor: default; font: 700 14px/1 var(--text); color: #ddd; }
.plus { font-size: 18px; }
html:not(.js) .board__keys .cap { cursor: default; }
html:not(.js) .board__keys .cap--wide { display: none; }
.keys__hint { margin-top: 16px; min-height: 3em; color: rgba(255,255,255,.72); font-size: 15px; line-height: 1.5; }
.keys__hint b { color: #fff; }
html:not(.js) .keys__hint { display: none; }
.keys__win { background: var(--yt-dark); }
.stage { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--yt-dark); }
.stage__zoom { position: absolute; inset: 0; transform-origin: 0 0; }
.stage__zoom img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage__b { opacity: 0; }
.stage__crop { position: absolute; inset: 0; z-index: 1; opacity: 0; visibility: hidden; }
.stage__crop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage__crop img + img { opacity: 0; }
.stage__b:not([src]) { display: none; }
.stage__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.stage__ring rect { fill: rgba(232,32,42,.08); stroke: #ff2a35; stroke-linejoin: round; }
.stage__illus { position: absolute; inset: 0; z-index: 2; padding: 3.5%; background: var(--yt-dark); opacity: 0; visibility: hidden; }
.stage__illus .schem { height: 100%; aspect-ratio: auto; box-shadow: none; padding: 0; background: none; border-radius: 0; }
.stage__tag { position: absolute; z-index: 3; left: 20px; top: 18px; }
.keys__cap { margin-top: 12px; font-size: 14px; color: rgba(255,255,255,.62); }
@media (max-width: 480px) { .board__keys { gap: 6px; } .cap { min-height: 62px; padding: 8px 7px; } .board__mods .cap--mod { min-height: 0; padding: 7px 11px; } .cap b { font-size: 20px; } .cap span { font-size: 10px; } .cap--wide span { font-size: 11px; } }

.schem { display: grid; grid-template-columns: auto minmax(0,1fr) auto; grid-template-areas: "side main col"; align-items: start; gap: 10px; padding: 14px; aspect-ratio: 16/10; border-radius: 20px; background: var(--yt-dark); overflow: hidden; }
.schem i { display: block; border-radius: 5px; background: #2a2a2e; }
.schem__side { grid-area: side; width: clamp(44px, 7vw, 110px); display: grid; align-content: start; gap: 8px; }
.schem__side i { height: 12px; }
.schem__main { grid-area: main; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.schem__player { position: relative; width: 100%; flex: none; aspect-ratio: 16/9; border-radius: 10px; background: linear-gradient(135deg, #3a2bd1, #e8202a); }
.schem__play { position: absolute; left: 50%; top: 50%; width: 0; height: 0; margin: -14px 0 0 -9px; border-style: solid; border-width: 14px 0 14px 24px; border-color: transparent transparent transparent rgba(255,255,255,.9); }
.schem__end { position: absolute; right: 4%; bottom: 8%; display: flex; gap: 8px; width: 46%; }
.schem__end i { flex: 1; aspect-ratio: 16/9; background: rgba(0,0,0,.5); box-shadow: 0 0 0 2px rgba(255,255,255,.7); }
.schem__title { height: 14px; width: 70%; border-radius: 5px; background: #4a4a50; }
.schem__desc { display: grid; gap: 6px; padding: 10px; border-radius: 10px; background: #1b1b1e; }
.schem__desc i { height: 8px; } .schem__desc i:nth-child(2) { width: 80%; } .schem__desc i:nth-child(3) { width: 60%; }
.schem__col { grid-area: col; width: clamp(90px, 14vw, 220px); display: flex; flex-direction: column; gap: 10px; }
.schem__col > div { display: grid; gap: 8px; padding: 8px; border-radius: 10px; background: #1b1b1e; }
.schem__sugg i { aspect-ratio: 16/9; height: auto; }

/* Compare: shimmer until a pair has decoded */
.js .pair { position: relative; }
.js .pair::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(100deg, #18181c 30%, #2a2a30 50%, #18181c 70%) 0 0 / 220% 100%;
  animation: shimmer 1.3s linear infinite; transition: opacity .4s;
}
.js .pair.is-ready::before { opacity: 0; animation: none; }
.js .pair:not(.is-ready) figure { visibility: hidden; }
@keyframes shimmer { to { background-position: -220% 0; } }
@media (prefers-reduced-motion: reduce) { .js .pair::before { animation: none; } }

/* ---------- Small things icon grid ---------- */
.small { padding: clamp(140px, 15vw, 250px) 0 0; }
.icongrid { max-width: var(--max); margin: clamp(56px, 6vw, 100px) auto 0; padding: 0 var(--pad); display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(48px, 5.5vw, 88px) clamp(32px, 3.6vw, 64px); }
.icongrid h3 { font-size: 21px; font-weight: 750; margin-top: 24px; letter-spacing: -.015em; }
.icongrid p { margin-top: 8px; color: var(--mute); font-size: 16px; }
.sq { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 19px; color: #fff; flex: none; }
.sq .ic { width: 28px; height: 28px; }
.sq--red { background: var(--red); } .sq--amber { background: #e2850c; } .sq--violet { background: var(--violet); }
.sq--teal { background: var(--teal); } .sq--blue { background: var(--blue); } .sq--pink { background: #d6336c; }
.sq--green { background: var(--green); } .sq--ink { background: var(--ink); }
.icongrid li:nth-child(4n+2) { transform: translateY(24px); }
.icongrid li:nth-child(4n+4) { transform: translateY(24px); }
@media (max-width: 1000px) { .icongrid { grid-template-columns: repeat(2, 1fr); } .icongrid li:nth-child(n) { transform: none; } }
@media (max-width: 480px) { .icongrid { grid-template-columns: 1fr; } }

/* ---------- Compare ---------- */
.part--two { padding-top: clamp(130px, 15vw, 220px); }
.compare { padding: 0 var(--pad); }
.cmp { max-width: var(--max); margin: 0 auto; }
.cmp__controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.flip { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 6px; border-radius: 999px; background: var(--ink); isolation: isolate; }
.flip::before { content: ""; position: absolute; z-index: -1; top: 6px; bottom: 6px; left: 6px; width: calc(50% - 6px); border-radius: 999px; background: #fff; transition: transform .45s var(--ease), background .3s; }
.flip:has(.flip__rf input:checked)::before { transform: translateX(100%); background: var(--red); }
.flip label { cursor: pointer; }
.flip span { display: block; padding: 14px 26px; text-align: center; font: 800 clamp(16px, 1.4vw, 19px)/1 var(--display); color: rgba(255,255,255,.75); transition: color .3s; white-space: nowrap; }
.flip__yt input:checked + span { color: var(--ink); }
.flip__rf input:checked + span { color: #fff; }
.flip input:focus-visible + span { outline: 3px solid #7aa7ff; outline-offset: 2px; border-radius: 999px; }
.pair { display: grid; }
.pair figure { grid-area: 1 / 1; margin: 0; position: relative; transition: opacity .45s var(--ease); }
.pair .rf { opacity: 0; }
.cmp:has(.flip__rf input:checked) .pair .rf { opacity: 1; }
.cmp:has(.flip__rf input:checked) .pair .yt { opacity: 0; }
/* The YouTube / With Reframe toggle labels each picture; the caption stays for screen readers only */
.badge { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cmp__hint { margin-top: 18px; color: var(--mute); font-size: 15px; text-align: center; }
.cmp__hint b { color: var(--ink); }
.cmp__win .sw-stage { background: var(--yt-dark); }

.contrast { max-width: var(--max); margin: clamp(120px, 13vw, 210px) auto 0; }
.contrast__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px clamp(40px, 6vw, 112px); align-items: end; }
.contrast__title { font-size: clamp(30px, 3.2vw, 48px); line-height: 1.06; max-width: 18ch; }
.contrast__lede { margin: 0; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.6; color: var(--mute); max-width: 46ch; }
.contrast__pair { margin-top: clamp(48px, 5vw, 80px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 48px); }
.contrast__shot { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.contrast__label { display: flex; align-items: center; gap: 14px; font: 500 15.5px/1.3 var(--text); color: var(--mute); }
.contrast__tag { flex: none; padding: 8px 14px; border-radius: 999px; font: 700 14px/1 var(--display); letter-spacing: -.005em; }
.contrast__tag--yt { background: #e4e4e9; color: var(--ink); }
.contrast__tag--rf { background: var(--red); color: #fff; box-shadow: 0 8px 20px -8px rgba(232,32,42,.6); }
.contrast__frame { aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #0f0f0f; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 34px 70px -34px rgba(0,0,0,.55); }
.contrast__frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .contrast__head { grid-template-columns: 1fr; align-items: start; }
  .contrast__pair { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Privacy ---------- */
.privacy { padding: clamp(150px, 16vw, 260px) var(--pad) 0; }
.privacy__in { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 7fr 5fr; gap: clamp(44px, 6.5vw, 112px); align-items: center; }
.pledges { display: grid; gap: 26px; margin: 36px 0 32px; }
.pledge { display: flex; gap: 18px; align-items: flex-start; font-size: 17px; color: var(--mute); }
.pledge b { color: var(--ink); }
.pledge .sq { width: 48px; height: 48px; border-radius: 15px; }
.pledge .sq .ic { width: 22px; height: 22px; }
.arrowlink { display: inline-flex; align-items: center; gap: 8px; font: 700 17px/1 var(--display); color: var(--red-d); text-decoration: none; padding: 12px 0; }
.arrowlink .ic { transition: transform .25s var(--ease); }
.arrowlink:hover .ic { transform: translateX(5px); }
.arrowlink:hover { text-decoration: underline; text-underline-offset: 4px; }
.stamp { position: relative; width: min(100%, 400px); aspect-ratio: 1; margin: 0 auto; color: var(--red); transform: rotate(-8deg); }
.stamp__ring { width: 100%; height: 100%; }
.stamp__ring text { font: 800 17px var(--display); letter-spacing: .06em; fill: currentColor; }
.stamp__core { position: absolute; inset: 22%; border-radius: 50%; display: grid; place-content: center; text-align: center; background: var(--red); color: #fff; box-shadow: 0 24px 50px -20px rgba(232,32,42,.7); }
.stamp__core span { font: 700 13px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; opacity: .9; }
.stamp__core b { font: 800 clamp(30px, 3.4vw, 44px)/1.1 var(--mono); letter-spacing: -.03em; margin: 6px 0; }
@media (max-width: 900px) { .privacy__in { grid-template-columns: 1fr; } .stamp { width: min(78%, 340px); } }

/* ---------- FAQ ---------- */
.faq { padding: clamp(150px, 16vw, 260px) 0 0; }
.faq__list { max-width: 900px; margin: clamp(48px, 5vw, 80px) auto 0; padding: 0 var(--pad); display: grid; gap: 16px; }
.qa { border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: background .25s, box-shadow .25s; }
.qa[open] { background: #fff; box-shadow: 0 20px 40px -24px rgba(0,0,0,.25); }
.qa:nth-child(3n+2)[open] { background: #fff7f5; }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px 22px 28px; cursor: pointer; list-style: none; font: 700 clamp(18px, 1.5vw, 21px)/1.3 var(--display); letter-spacing: -.015em; border-radius: 20px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover .qa__ic { background: var(--red); }
.qa summary:hover .qa__ic::before, .qa summary:hover .qa__ic::after { background: #fff; }
.qa__ic { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #f0f0f3; transition: background .25s, transform .4s var(--ease); }
.qa__ic::before, .qa__ic::after { content: ""; position: absolute; left: 11px; right: 11px; top: 17px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: background .25s; }
.qa__ic::after { transform: rotate(90deg); transition: transform .4s var(--ease), background .25s; }
.qa[open] .qa__ic { background: var(--red); transform: rotate(180deg); }
.qa[open] .qa__ic::before, .qa[open] .qa__ic::after { background: #fff; }
.qa[open] .qa__ic::after { transform: rotate(0deg); }
.qa__a { overflow: hidden; }
.qa__a p { padding: 0 28px 26px; color: var(--mute); max-width: 720px; }

/* ---------- Final CTA ---------- */
.final { padding: clamp(150px, 16vw, 260px) var(--pad) 0; }
.final__field { position: relative; isolation: isolate; overflow: hidden; max-width: 1560px; margin: 0 auto; padding: clamp(80px, 11vw, 180px) var(--pad); border-radius: var(--r-xl); text-align: center; color: #fff; display: flex; flex-direction: column; align-items: center; }
.wall--final { background: linear-gradient(135deg, #e8202a 0%, #b0205a 55%, #4b2bd1 100%); }
.wall--final i:nth-child(1) { width: 50%; aspect-ratio: 1; left: -10%; bottom: -40%; background: #ff8a3d; }
.wall--final i:nth-child(2) { width: 45%; aspect-ratio: 1; right: -10%; top: -30%; background: #7b5cff; }
.wall--final i:nth-child(3) { width: 30%; aspect-ratio: 1; left: 40%; top: -20%; background: #ff3d7f; opacity: .6; }
.final__icon { width: 96px; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); }
.final__title { margin-top: 36px; font-size: clamp(44px, 7vw, 112px); font-weight: 800; letter-spacing: -.028em; line-height: 1.02; }
.final__lede { margin-top: 22px; font-size: clamp(18px, 1.5vw, 22px); color: rgba(255,255,255,.92); max-width: 620px; }
.final .btn { margin-top: 36px; }
.final__note { margin-top: 20px; font-size: 14.5px; color: rgba(255,255,255,.86); }

/* ---------- Footer ---------- */
.foot { padding: clamp(96px, 11vw, 160px) var(--pad) 56px; }
.foot__in { max-width: 900px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.foot__mark { width: 150px; height: auto; }
.foot__credit { font-size: 16px; }
.foot__legal { font-size: 14px; color: var(--mute); max-width: 640px; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.foot__links a { text-decoration: none; padding: 10px 16px; border-radius: 999px; background: rgba(0,0,0,.05); font-weight: 600; font-size: 14.5px; }
.foot__links a:hover { background: rgba(0,0,0,.09); }

/* ---------- Floating dock ---------- */
.dock {
  position: fixed; z-index: 60; left: 50%; bottom: 18px; display: none; align-items: center; gap: 14px;
  padding: 8px 8px 8px 10px; border-radius: 999px; background: rgba(255,255,255,.9);
  backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 20px 40px -14px rgba(0,0,0,.35);
  transform: translate(-50%, 160%); transition: transform .5s var(--ease);
}
.js .dock { display: flex; }
.dock.is-on:not(.is-away) { transform: translate(-50%, 0); }
.dock img { width: 40px; height: 40px; }
.dock__name { font: 800 16px/1 var(--display); letter-spacing: -.015em; padding-right: 6px; white-space: nowrap; }
@media (max-width: 480px) { .dock { bottom: 12px; gap: 10px; } .dock__name { font-size: 14px; } .dock .btn { font-size: 14px; padding: .7em 1em; } }
@media (max-width: 360px) { .dock__name { display: none; } }

/* ---------- Split text helpers ---------- */
.split .w { display: inline-block; }
.combo { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- Mobile overflow guards ---------- */
.privacy { overflow-x: clip; }
@media (max-width: 480px) { .seg--tv span { padding: 9px 13px; font-size: 13.5px; } .seg--tv .seg__more { display: none; } .seg--tv span span { padding: 0; } }
.seg--tv span span { display: inline; padding: 0; background: none; box-shadow: none; color: inherit; font: inherit; }
