/* PrettyTv front page (tools/index_page.py). The legal pages keep css/site.css.
   Layout: a TV broadcast night. The hero is the TV and the phone, "What's new" is an EPG row with a now-line, the
   features are a bento of real screens, the platforms a channel list. The app's twelve skins are token sets on
   html[data-skin] (set before first paint by the head script in tools/common.py, saved as prettytv.skin, shared with
   the other pages); Midnight is the default. Colours from css/style.css in the app. */

@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(../fonts/figtree-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(../fonts/figtree-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- tokens: Midnight ---------- */
:root {
  --bg: #0B0E13; --bg-2: #07090C; --surface: #11161D; --surface-2: #1C2430; --line: #2A3340; --line-2: #2F3A49;
  --text: #E6EAF0; --text-2: #C3CBD6; --dim: #8F9BAD;
  --accent: #2A64D4; --accent-2: #6E9BFF; --on-accent: #FFFFFF; --live: #D2343A; --star: #E8B04A; --ok: #3FB27F;
  --glow: rgba(42, 100, 212, .22); --glow-2: rgba(36, 28, 71, .75);
  --header: rgba(11, 14, 19, .75); --shadow: 0 30px 80px rgba(0, 0, 0, .55); --bezel: #05070A;
  --f-ui: 'Figtree', 'Segoe UI', system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --f-mono: ui-monospace, 'Cascadia Mono', 'SF Mono', Menlo, Consolas, monospace;
  --r: 18px; --r-lg: 28px;
  color-scheme: dark;
}
html[data-skin="oled"] { --bg: #000000; --bg-2: #050608; --surface: #0A0D11; --surface-2: #171D26; --line: #1E252E; --line-2: #2A3340; --text: #DDE3EB; --text-2: #AEB7C4; --dim: #79838F; --live: #C22F35; --star: #D9A33F; --glow: rgba(42, 100, 212, .14); --glow-2: rgba(36, 28, 71, .45); --header: rgba(0, 0, 0, .78); --shadow: 0 30px 80px rgba(0, 0, 0, .7); }
html[data-skin="contrast"] { --bg: #000000; --bg-2: #0A0E14; --surface: #10151C; --surface-2: #232D3B; --line: #3A4554; --line-2: #55637A; --text: #FFFFFF; --text-2: #E8EDF4; --dim: #AEB9C8; --accent: #2E6FEA; --accent-2: #8FB4FF; --live: #E03C42; --star: #FFC14D; --glow: rgba(46, 111, 234, .18); --glow-2: rgba(36, 28, 71, .5); --header: rgba(0, 0, 0, .88); --shadow: 0 30px 80px rgba(0, 0, 0, .7); }
html[data-skin="light"] { --bg: #F2F4F8; --bg-2: #E9EDF3; --surface: #FFFFFF; --surface-2: #E0E6EE; --line: #D5DCE5; --line-2: #BBC6D4; --text: #15202E; --text-2: #324052; --dim: #5E6B7C; --accent: #2457C5; --accent-2: #2457C5; --live: #C62F35; --star: #B07817; --ok: #1E8A5A; --glow: rgba(36, 87, 197, .12); --glow-2: rgba(120, 100, 220, .14); --header: rgba(242, 244, 248, .82); --shadow: 0 30px 70px rgba(18, 26, 39, .18); --bezel: #15202E; color-scheme: light; }
html[data-skin="grafitt"] { --bg: #0D0D0F; --bg-2: #08080A; --surface: #141417; --surface-2: #1F1F23; --line: #2A2A2F; --line-2: #3D3D45; --text: #F0F0F2; --text-2: #D1D7E0; --dim: #9198A1; --accent: #2F6FE0; --accent-2: #4493F8; --live: #D1242F; --star: #D29922; --glow: rgba(47, 111, 224, .10); --glow-2: rgba(30, 30, 36, .6); --header: rgba(13, 13, 15, .8); --shadow: none; }
html[data-skin="premiere"] { --bg: #0B0B0C; --bg-2: #050505; --surface: #121214; --surface-2: #1E1E21; --line: #2B2B2F; --line-2: #34343A; --text: #F3F3F3; --text-2: #D4D4D6; --dim: #8E8E94; --accent: #ECECEE; --accent-2: #F3F3F3; --on-accent: #0B0B0C; --live: #D8202A; --star: #F5C518; --glow: rgba(216, 32, 42, .10); --glow-2: rgba(40, 40, 44, .6); --header: rgba(11, 11, 12, .8); --shadow: 0 30px 80px rgba(0, 0, 0, .6); }
html[data-skin="nordlys"] { --bg: #0A1416; --bg-2: #060D0F; --surface: #0E1D20; --surface-2: #163238; --line: #21414A; --line-2: #2A4F58; --text: #E4F2F0; --text-2: #BFD8D5; --dim: #86A8A6; --accent: #0B7A68; --accent-2: #5EEAD4; --star: #E8C24A; --glow: rgba(46, 204, 150, .16); --glow-2: rgba(110, 80, 200, .22); --header: rgba(10, 20, 22, .8); }
html[data-skin="retro"] { --bg: #ECE9D8; --bg-2: #DCD8C2; --surface: #F5F4EC; --surface-2: #C1D2EE; --line: #CFCAB4; --line-2: #7F9DB9; --text: #10204A; --text-2: #22305A; --dim: #4A5578; --accent: #316AC5; --accent-2: #316AC5; --live: #C42B1C; --star: #9A6A00; --ok: #2E7D32; --glow: rgba(49, 106, 197, .14); --glow-2: rgba(120, 170, 80, .2); --header: rgba(236, 233, 216, .85); --shadow: 0 30px 60px rgba(16, 32, 74, .25); --bezel: #10204A; color-scheme: light; }
html[data-skin="halloween"] { --bg: #120A14; --bg-2: #0A050B; --surface: #1A0F1D; --surface-2: #2E1A33; --line: #3A2540; --line-2: #4A3050; --text: #F3EAF2; --text-2: #D8C8D9; --dim: #A895AC; --accent: #B8470D; --accent-2: #FF8A2A; --live: #E0303A; --star: #F2B83A; --glow: rgba(255, 138, 42, .16); --glow-2: rgba(120, 60, 140, .3); --header: rgba(18, 10, 20, .8); }
html[data-skin="jul"] { --bg: #0B1A12; --bg-2: #06100A; --surface: #0F2318; --surface-2: #1A3A28; --line: #244530; --line-2: #2E553B; --text: #F4F1EA; --text-2: #D9D6CB; --dim: #9FA99A; --accent: #1F7A3E; --accent-2: #F2C14E; --live: #C8302E; --star: #F2C14E; --glow: rgba(242, 193, 78, .12); --glow-2: rgba(31, 122, 62, .3); --header: rgba(11, 26, 18, .8); }
html[data-skin="glans"] { --bg: #0A0A18; --bg-2: #07071A; --surface: #100F24; --surface-2: #1C1A3A; --line: #2A2850; --line-2: #343160; --text: #F1EFFF; --text-2: #D3D0F0; --dim: #908CBA; --accent: #5B4BEA; --accent-2: #9C90FF; --live: #E0244A; --star: #FFC857; --glow: rgba(109, 93, 252, .30); --glow-2: rgba(0, 194, 255, .16); --header: rgba(10, 10, 24, .8); --shadow: 0 30px 80px rgba(0, 0, 0, .6); }
html[data-skin="scene"] { --bg: #000000; --bg-2: #000000; --surface: #0A0A0A; --surface-2: #141414; --line: #262626; --line-2: #303030; --text: #FFFFFF; --text-2: #D9D9D9; --dim: #8C8C8C; --accent: #FFB547; --accent-2: #FFB547; --on-accent: #1A1200; --live: #D92A20; --star: #FFC94A; --glow: rgba(255, 181, 71, .18); --glow-2: rgba(60, 40, 10, .4); --header: rgba(0, 0, 0, .82); --shadow: 0 30px 80px rgba(0, 0, 0, .7); }

/* ---------- base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--f-ui); -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background-color .3s, color .3s; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -.02em; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 700px) { .wrap { padding-left: 28px; padding-right: 28px; } }
section { padding-block: clamp(64px, 9vw, 120px); }
.alt { background: var(--bg-2); }
.eyebrow { font: 700 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); display: inline-flex; align-items: center; gap: 8px; }
.eyebrow.live { color: var(--live); }
.eyebrow.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--live); }
.sec-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head h2 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.05; font-weight: 800; }
.sec-head p { color: var(--text-2); font-size: clamp(16px, 1.6vw, 19px); max-width: 62ch; }
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ic.play { fill: currentColor; stroke: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; font-size: 13px; line-height: 1.3; color: var(--text-2); white-space: nowrap; }
.pill.live { background: var(--live); border-color: var(--live); color: #fff; letter-spacing: .06em; }
.pill.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 14px; font: 700 16px/1 var(--f-ui); text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .15s, filter .15s; }
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 30px var(--glow); }
.btn.ghost { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.btn.sm { height: 40px; padding: 0 16px; font-size: 15px; border-radius: 12px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: var(--header); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid var(--line); }
.top .bar { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--text-2); font-weight: 600; font-size: 15px; padding: 8px 11px; border-radius: 10px; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.skin-btn { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; flex: none; }
.skin-btn i { width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(var(--accent), var(--live), var(--star), var(--accent-2), var(--accent)); }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); align-items: center; justify-content: center; cursor: pointer; flex: none; }
.mobile-nav { display: grid; padding-block: 4px 12px; border-top: 1px solid var(--line); }
.mobile-nav a { text-decoration: none; font-weight: 700; padding: 13px 2px; border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border: 0; }
@media (max-width: 920px) {
  .nav, .top .btn { display: none; }
  .skin-btn { margin-left: auto; }
  .menu-btn { display: inline-flex; }
}
@media (min-width: 921px) { .mobile-nav { display: none !important; } }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(40px, 7vw, 88px) 0; overflow: hidden; }
.hero::before { content: ""; position: absolute; left: -10%; right: -10%; top: -20%; height: 900px; background: radial-gradient(600px 380px at 20% 20%, var(--glow), transparent 70%), radial-gradient(700px 420px at 85% 10%, var(--glow-2), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; }
.hero-copy { display: grid; gap: 22px; max-width: 860px; }
.onair { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.hero h1 { font-size: clamp(42px, 8vw, 96px); line-height: .98; font-weight: 900; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; color: var(--accent-2); background: linear-gradient(100deg, var(--accent-2), var(--star) 70%, var(--live)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lede { font-size: clamp(17px, 2vw, 21px); color: var(--text-2); max-width: 60ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.trial { font-size: 14px; color: var(--dim); }
.trial b { color: var(--text); }
.formats { display: flex; flex-wrap: wrap; gap: 8px; }
.stage { position: relative; margin-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 80px); }
.tv { max-width: 1040px; border-radius: 22px; padding: 10px; background: linear-gradient(160deg, var(--line-2), var(--surface) 55%); box-shadow: var(--shadow); }
.tv img { border-radius: 14px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tv-stand { width: 22%; max-width: 240px; height: 14px; margin-left: calc(min(1040px, 100%) / 2 - min(22%, 240px) / 2); border-radius: 0 0 14px 14px; background: var(--line-2); opacity: .7; }
.phone { position: absolute; right: 0; bottom: 0; width: clamp(130px, 22vw, 250px); border-radius: 30px; padding: 7px; background: var(--bezel); box-shadow: var(--shadow), 0 0 0 1px var(--line-2); }
.phone img { border-radius: 24px; width: 100%; }
.demo-note { margin-top: 18px; font-size: 13px; color: var(--dim); max-width: 70%; }
@media (max-width: 560px) { .phone { width: 34vw; right: -4px; bottom: 36px; border-radius: 20px; padding: 4px; } .phone img { border-radius: 16px; } .demo-note { max-width: 58%; } }

/* ---------- the two notices ---------- */
.notices-sec { padding-block: 0 clamp(24px, 4vw, 40px); }
.notices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.notice { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.notice .ic { width: 26px; height: 26px; color: var(--accent-2); margin-top: 2px; }
.notice b { display: block; font-size: 17px; margin-bottom: 4px; }
.notice p { color: var(--text-2); font-size: 15px; }
.notice a { color: var(--accent-2); font-weight: 600; }

/* ---------- what's new: an EPG row ---------- */
.epg { position: relative; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.epg-scroll { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.epg-track { width: max-content; }
.epg-ruler, .epg-row { display: grid; grid-auto-flow: column; grid-auto-columns: 290px; }
.epg-ruler { border-bottom: 1px solid var(--line); font: 700 12px/1 var(--f-mono); color: var(--dim); letter-spacing: .06em; }
.epg-ruler span { padding: 14px 20px; border-right: 1px solid var(--line); }
.prog { scroll-snap-align: start; padding: 20px; border-right: 1px solid var(--line); display: grid; gap: 8px; align-content: start; min-width: 0; }
.prog:nth-child(odd) { background: var(--bg-2); }
.prog .tag { font: 700 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }
.prog h3 { font-size: 18px; line-height: 1.25; font-weight: 800; }
.prog p { font-size: 14.5px; color: var(--text-2); }
.prog .where { font-size: 12.5px; color: var(--dim); }
.prog.now { background: var(--surface-2); }
.prog.now .tag { color: var(--live); }
.nowline { position: absolute; top: 0; bottom: 0; right: 0; width: 2px; background: var(--live); pointer-events: none; }
.nowline::before { content: "NOW"; position: absolute; top: 10px; right: 6px; font: 700 10px/1 var(--f-mono); letter-spacing: .1em; color: #fff; background: var(--live); padding: 4px 6px; border-radius: 5px; }
.epg-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
@media (max-width: 560px) { .epg-ruler, .epg-row { grid-auto-columns: 78vw; } }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; min-width: 0; }
.tile .txt { padding: 26px 26px 20px; display: grid; gap: 10px; }
.tile h3 { font-size: clamp(21px, 2.2vw, 26px); line-height: 1.15; font-weight: 800; }
.tile p { color: var(--text-2); font-size: 15.5px; }
.tile .shot { margin-top: auto; padding-left: 26px; }
.tile .shot img { width: 100%; border-radius: 14px 0 0 0; border: 1px solid var(--line-2); border-right: 0; border-bottom: 0; aspect-ratio: 16 / 9; object-fit: cover; object-position: left top; }
.tile .shot.inset { padding: 0 26px 26px; }
.tile .shot.inset img { border-radius: 14px; border: 1px solid var(--line-2); }
.t-wide { grid-column: span 4; }
.t-narrow { grid-column: span 2; }
.t-half { grid-column: span 3; }
.t-sport { background: radial-gradient(600px 300px at 100% 0, var(--glow), transparent 70%), var(--surface); }
.t-cinema { background: radial-gradient(600px 300px at 0 0, var(--glow-2), transparent 70%), var(--surface); }
.leagues { display: flex; flex-wrap: wrap; gap: 6px; }
.t-phone { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.t-phone .shot { padding: 26px 26px 0 0; }
.t-phone .shot img { width: clamp(140px, 18vw, 200px); aspect-ratio: auto; border-radius: 22px 22px 0 0; border: 1px solid var(--line-2); border-bottom: 0; object-fit: initial; }
@media (max-width: 960px) { .t-wide, .t-narrow, .t-half { grid-column: span 6; } }
@media (max-width: 560px) {
  .tile .txt { padding: 22px 20px 18px; }
  .tile .shot { padding-left: 20px; }
  .tile .shot.inset { padding: 0 20px 20px; }
  .t-phone { grid-template-columns: minmax(0, 1fr); }
  .t-phone .shot { padding: 0 20px; justify-self: center; }
}

/* ---------- skins ---------- */
.skins { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
.skin-view { border-radius: 20px; padding: 8px; background: linear-gradient(160deg, var(--line-2), var(--surface) 55%); box-shadow: var(--shadow); }
.skin-view img { border-radius: 13px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.skin-copy { display: grid; gap: 18px; }
.skin-copy p { color: var(--text-2); font-size: 15.5px; }
.swatches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sw { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 15px/1.2 var(--f-ui); cursor: pointer; text-align: left; min-width: 0; }
.sw i { width: 22px; height: 22px; border-radius: 7px; flex: none; box-shadow: inset 0 0 0 1px rgba(127, 127, 127, .35); }
.sw small { margin-left: auto; font: 700 10px/1 var(--f-mono); letter-spacing: .08em; color: var(--accent-2); }
.sw:hover { border-color: var(--line-2); }
.sw[aria-pressed="true"] { border-color: var(--accent-2); background: var(--surface-2); }
.linkish { background: none; border: 0; padding: 0; color: var(--accent-2); font-weight: 600; text-decoration: underline; cursor: pointer; }
@media (max-width: 860px) { .skins { grid-template-columns: minmax(0, 1fr); } }

/* ---------- all features ---------- */
.feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); column-gap: 24px; border-top: 1px solid var(--line); }
.feat { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; align-content: start; min-width: 0; }
.feat h3 { font-size: 16.5px; font-weight: 800; display: flex; gap: 10px; align-items: center; letter-spacing: -.01em; }
.feat h3 .ic { width: 20px; height: 20px; color: var(--accent-2); }
.feat p { color: var(--text-2); font-size: 14.5px; }

/* ---------- platforms: a channel list ---------- */
.chlist { border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.ch { display: grid; grid-template-columns: 36px 56px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.ch:last-child { border-bottom: 0; }
.ch .n { font: 700 15px/1 var(--f-mono); color: var(--dim); text-align: right; font-variant-numeric: tabular-nums; }
.ch .logo-t { width: 56px; height: 40px; border-radius: 10px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; letter-spacing: .02em; }
.ch b { display: block; font-size: 17px; }
.ch small { color: var(--dim); font-size: 14px; }
.ch .get { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; }
.store-badge img { height: 40px; width: auto; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--dim); white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--star); }
@media (max-width: 680px) {
  .ch { grid-template-columns: 44px minmax(0, 1fr); padding: 16px; row-gap: 12px; }
  .ch .n { display: none; }
  .ch .logo-t { width: 44px; height: 36px; font-size: 12px; }
  .ch .get { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ---------- premium ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.plan { position: relative; padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.plan.rec { border-color: var(--accent-2); box-shadow: 0 20px 60px var(--glow); }
.plan h3 { font-size: 22px; font-weight: 800; }
.plan .price { color: var(--dim); font-size: 14.5px; }
.plan ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.plan li { display: flex; gap: 10px; font-size: 15px; color: var(--text-2); }
.plan li .ic { width: 18px; height: 18px; color: var(--ok); margin-top: 3px; }
.plan .flag { position: absolute; top: -12px; left: 22px; }
.plan .flag.new { background: var(--surface); color: var(--accent-2); border-color: var(--accent-2); }
.fine { margin-top: 22px; font-size: 13.5px; color: var(--dim); max-width: 90ch; }
.fine a { color: var(--accent-2); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; counter-reset: s; margin: 0; padding: 0; list-style: none; }
.step { padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 10px; align-content: start; }
.step::before { counter-increment: s; content: "0" counter(s); font: 700 13px/1 var(--f-mono); color: var(--accent-2); letter-spacing: .08em; }
.step h3 { font-size: 20px; font-weight: 800; }
.step p { color: var(--text-2); font-size: 15px; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 10px; max-width: 880px; }
.faq details { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; font-size: 16.5px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 700 20px/1 var(--f-mono); color: var(--dim); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 22px 20px; color: var(--text-2); font-size: 15.5px; display: grid; gap: 10px; }
.faq .a a { color: var(--accent-2); }
.faq code { font-family: var(--f-mono); font-size: .9em; }
.contact { margin-top: 28px; max-width: 880px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.contact p { color: var(--text-2); font-size: 15px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 48px 56px; color: var(--dim); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.foot h4 { color: var(--text); font-size: 14px; margin-bottom: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { color: var(--text-2); text-decoration: none; }
.foot a:hover { color: var(--text); text-decoration: underline; }
.foot .brand { color: var(--text); margin-bottom: 12px; }
.legal-note { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; max-width: 110ch; font-size: 13px; }
.legal-note strong { color: var(--text-2); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- /guides (tools/guides_page.py) ---------- */
.g-hero { padding-block: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 40px); }
.g-hero h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1; font-weight: 900; letter-spacing: -.03em; margin-top: 14px; }
.g-hero p { color: var(--text-2); font-size: clamp(16px, 1.8vw, 19px); max-width: 62ch; margin-top: 16px; }
.g-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding-bottom: clamp(64px, 9vw, 120px); }
.g-toc { position: sticky; top: 84px; display: grid; gap: 2px; font-size: 15px; max-height: calc(100vh - 104px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; align-content: start; }
.g-toc b { font: 700 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.g-toc a { text-decoration: none; color: var(--text-2); padding: 7px 10px; border-radius: 9px; border-left: 2px solid transparent; }
.g-toc a:hover { background: var(--surface-2); color: var(--text); }
.g-list { display: grid; gap: 20px; min-width: 0; }
.guide { padding: clamp(22px, 3vw, 32px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 16px; min-width: 0; scroll-margin-top: 84px; }
.guide h2 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.15; font-weight: 800; }
.guide > p { color: var(--text-2); font-size: 16px; max-width: 70ch; }
.g-dev { display: grid; gap: 8px; }
.g-dev h3 { font: 700 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); display: flex; gap: 8px; align-items: center; }
.g-dev ol { margin: 0; padding-left: 1.4em; display: grid; gap: 6px; color: var(--text); font-size: 16px; }
.g-dev ol li::marker { color: var(--dim); font-family: var(--f-mono); font-size: .9em; }
.g-note { font-size: 14.5px; color: var(--dim); border-left: 2px solid var(--line-2); padding-left: 12px; max-width: 70ch; }
.g-note b { color: var(--text-2); }
.guide .ui { font-weight: 700; }
kbd { display: inline-block; min-width: 1.6em; padding: 1px 7px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line-2); border-bottom-width: 2px; font: 700 .82em/1.5 var(--f-mono); text-align: center; color: var(--text); white-space: nowrap; }
.g-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.g-shot img { width: 100%; border-radius: 14px; border: 1px solid var(--line-2); aspect-ratio: 16 / 9; object-fit: cover; }
.g-shot figcaption { font-size: 13px; color: var(--dim); margin-top: 8px; }
.g-platforms { display: flex; flex-wrap: wrap; gap: 6px; }
.g-platforms .pill { white-space: normal; }
@media (max-width: 860px) {
  .g-layout { grid-template-columns: minmax(0, 1fr); }
  .g-toc { position: static; max-height: none; overflow: visible; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
  .g-toc b { grid-column: 1 / -1; }
}
/* a step with its own screenshot (step-<guide>-<n>): text beside the picture, stacked on narrow screens */
.g-dev ol li.has-shot .t { margin-bottom: 10px; }
.g-step-shot { margin: 0; }
.g-step-shot img { width: 100%; max-width: 640px; border-radius: 12px; border: 1px solid var(--line-2); aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 1100px) {
  .g-dev ol li.has-shot .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; align-items: start; }
  .g-dev ol li.has-shot .t { margin-bottom: 0; }
}
.g-dev ol li.has-shot + li { margin-top: 10px; }
/* big screens: the whole guides page is scaled up (text, menu, pictures), as a browser zoom would */
@media (min-width: 1700px) { html:has(.g-layout) { zoom: 1.1; } }
@media (min-width: 2200px) { html:has(.g-layout) { zoom: 1.25; } }
@media (min-width: 2900px) { html:has(.g-layout) { zoom: 1.5; } }
.g-step-shot a { display: block; border-radius: 12px; } .g-step-shot a:hover img { border-color: var(--accent-2); }
