/* Public pages: home (index.php) and downloads (indir.php) */
.wrap { width: 100%; max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: clamp(18px, 4vw, 48px); padding-right: clamp(18px, 4vw, 48px); }
.skip:focus { position: fixed; left: 12px; top: 12px; width: auto; height: auto; clip: auto; z-index: 10; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 999px; }
h1, h2, h3 { font-family: var(--display); margin: 0; }
h2 { font-weight: 700; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.04; letter-spacing: -0.03em; }
h3 { font-weight: 600; font-size: 21px; line-height: 1.2; letter-spacing: -0.015em; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }
main > section { margin-top: clamp(80px, 10vw, 136px); }
button.quiet { background: none; border: 0; padding: 6px 0; color: var(--accent-text); font: 600 14px var(--body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
button.quiet:hover { color: var(--text); }

/* Header */
.top-in { display: flex; align-items: center; gap: 28px; padding-top: 22px; padding-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; font: 600 24px/1 var(--display); letter-spacing: -0.02em; }
.brand:hover { color: var(--text); }
.top nav { margin-left: auto; display: flex; gap: 26px; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--text); }
.top-dl { min-height: 38px; padding: 0 18px; font-size: 14px; }

/* Hero: the line first, what it means beside it at the baseline */
main > .hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 32px clamp(32px, 5vw, 72px); align-items: end; margin-top: clamp(32px, 7vw, 96px); }
.hero h1 { font-weight: 800; font-size: clamp(50px, 8.4vw, 120px); line-height: .92; letter-spacing: -0.032em; font-variation-settings: "opsz" 96; text-wrap: balance; }
.lead { font-size: 18px; line-height: 1.55; color: var(--text); margin-bottom: 26px; max-width: 36em; }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.fine { color: var(--muted); font-size: 14px; margin: 14px 0 0; }

/* ---- The app window ---- */
.demo { margin-top: clamp(48px, 7vw, 88px); margin-bottom: 0; }
.win { border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; background: var(--bg); }
.win-bar { display: flex; align-items: center; gap: 10px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.win-name { font: 600 18px/1 var(--display); letter-spacing: -0.02em; margin-right: auto; }
.win-icon { width: 32px; height: 32px; display: grid; place-items: center; color: var(--muted); }
.win-icon svg { width: 18px; height: 18px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font: 600 13px var(--body); }
.win-body { position: relative; height: clamp(420px, 40vw, 480px); }
.scene { position: absolute; inset: 0; transition: opacity .18s ease; }
.demo .scene-connect, .demo .scene-game { opacity: 0; pointer-events: none; }
.demo[data-step="connect"] .scene-list, .demo[data-step="game"] .scene-list { opacity: 0; }
.demo[data-step="connect"] .scene-connect { opacity: 1; }
.demo[data-step="game"] .scene-game { opacity: 1; }

.scene-list { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 40px; padding: 26px 30px; }
.hello { font: 800 36px/1.02 var(--display); letter-spacing: -0.03em; margin: 4px 0 22px; }
.hello span { display: block; color: var(--muted); font: 400 19px/1.3 var(--body); letter-spacing: 0; margin-top: 8px; }
.sec { font: 600 13px/1 var(--body); color: var(--muted); margin: 18px 0 4px; }
.row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row .t { flex: 1; min-width: 0; }
.row .t b, .prow .t b { display: block; font: 600 16px/1.3 var(--body); }
.row .t small, .prow .t small { color: var(--muted); font-size: 13px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.dot.ok { background: var(--ok); } .dot.warm { background: var(--warm); }
.btn.sm { min-height: 32px; padding: 0 15px; font-size: 13px; }
.demo-connect { transition: transform .12s ease, background .12s ease; }
.demo[data-step="press"] .demo-connect { transform: scale(.94); background: var(--accent-hover); }
.ps { width: 22px; height: 33px; flex: none; }
.ps path { fill: var(--c); }
.ps .core { fill-opacity: .3; }
.ps .side { fill-opacity: .78; }
.ps.ok { --c: var(--ok); } .ps.warm { --c: var(--warm); } .ps.muted { --c: var(--muted); }
.friends { border-left: 1px solid var(--line); padding-left: 26px; }
.friend { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; }
.friend i, .av { width: 28px; height: 28px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; font: 600 11px var(--body); font-style: normal; color: var(--text); flex: none; }
.friend em { margin-left: auto; color: var(--muted); font-style: normal; font-size: 12px; }
.friend em.acc { color: var(--accent-text); font-weight: 600; }

.scene-connect { display: grid; place-content: center; justify-items: center; text-align: center; padding: 20px; }
.orbit { width: 96px; height: 96px; overflow: visible; }
.orbit .ring { stroke: var(--accent); }
.orbit .arc { stroke: var(--warm); }
.orbit .sat { transform-box: view-box; transform-origin: 32px 32px; }
.demo[data-step="connect"] .orbit .sat { animation: orbit 2.4s cubic-bezier(.45, .05, .55, .95) 2; }
@keyframes orbit { to { transform: rotate(360deg); } }
.c1 { font: 600 22px/1.2 var(--display); letter-spacing: -0.01em; margin: 26px 0 6px; }
.c2 { color: var(--muted); font-size: 14px; margin: 0; }

.scene-game { background: #000; overflow: hidden; }
.land { position: absolute; inset: 0; width: 100%; height: 100%; }
.sub { position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%); margin: 0; white-space: nowrap; text-align: center; font: 600 clamp(15px, 1.9vw, 22px)/1.35 var(--body); color: #fff; }
.sub .en { text-shadow: 0 0 2px #000, 0 0 2px #000, 0 1px 3px #000; }
/* Oviora's box sits right on top of the line it read and covers it */
.sub .tr { position: absolute; inset: -5px -16px; display: flex; align-items: center; justify-content: center; background: #0A090E; border-radius: 6px; opacity: 0; transition: opacity .15s ease; }
.demo.translated .sub .tr { opacity: 1; }

.demo figcaption { display: flex; gap: 18px; align-items: baseline; justify-content: space-between; color: var(--muted); font-size: 14px; margin-top: 14px; }

/* ---- Sharing ---- */
.share { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.share h2 { margin-bottom: 22px; max-width: 13em; }
.share-text > p { max-width: 34em; }
.facts { margin: 30px 0 0; }
.facts div { border-top: 1px solid var(--line); padding: 14px 0; display: grid; grid-template-columns: 15em 1fr; gap: 18px; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--muted); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.share-mock { padding: 22px 24px 8px; margin-top: 8px; }
.panel-title { font: 600 20px/1.2 var(--display); letter-spacing: -0.015em; margin: 0 0 8px; }
.panel-title span { display: block; font: 400 14px var(--body); color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.prow { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.prow .t { flex: 1; min-width: 0; }
.warnline { color: var(--warm); border-color: rgba(255, 184, 107, .35); }
.sw { width: 40px; height: 24px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--line-strong); position: relative; flex: none; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); }
.sw.on { background: var(--accent); border-color: var(--accent); }
.sw.on::after { left: auto; right: 3px; background: #fff; }

/* ---- Subtitles: the lines themselves are the picture ---- */
.subs { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(56px, 7vw, 96px) 0; }
.subs-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.subs h2 { margin-bottom: 22px; }
.subs-text p { max-width: 32em; }
.pair { display: grid; gap: 6px; padding: 22px 0; border-top: 1px solid var(--line-strong); }
.pair:last-child { border-bottom: 1px solid var(--line-strong); }
.pair .src { color: var(--muted); font-size: 15px; }
.pair .dst { font: 600 clamp(22px, 2.4vw, 30px)/1.2 var(--display); letter-spacing: -0.02em; }

/* ---- Devices ---- */
.devices { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(36px, 7vw, 110px); align-items: center; }
.phone { background: var(--bg); border: 8px solid #000; outline: 1px solid var(--line-strong); border-radius: 36px; padding: 18px 16px 26px; min-height: 470px; }
.phone-bar { display: flex; align-items: center; gap: 9px; font: 600 17px/1 var(--display); letter-spacing: -0.02em; padding: 4px 2px 12px; }
.phone-bar .avatar { margin-left: auto; width: 28px; height: 28px; font-size: 12px; }
.phone .hello { font-size: 27px; margin: 8px 0 16px; }
.phone .hello span { font-size: 15px; }
.devices h2 { margin-bottom: 18px; }
.devices-text > p { max-width: 34em; color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 30px; }
.two > div { border-top: 1px solid var(--line); padding-top: 18px; }
.two h3 { margin-bottom: 8px; }
.two p { color: var(--muted); }

/* ---- Steps: a real sequence ---- */
.steps-sec h2 { margin-bottom: 34px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--line-strong); padding-top: 18px; }
.steps li:first-child { border-top-color: var(--accent); }
.steps li::before { content: counter(step); display: block; font: 700 15px/1 var(--display); color: var(--muted); margin-bottom: 16px; }
.steps b { display: block; font: 600 20px/1.25 var(--display); letter-spacing: -0.015em; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15px; }

/* ---- Downloads ---- */
.get h2 { margin-bottom: 26px; }
.dl { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 18px 40px; align-items: start; padding: 28px 0; border-top: 1px solid var(--line); }
.dl:last-of-type { border-bottom: 1px solid var(--line); }
.dl-name { display: flex; align-items: center; gap: 12px; }
.dl-name svg { width: 26px; height: 26px; color: var(--muted); }
.dl-name h3 { font-size: 26px; }
.dl-info p { margin-bottom: 6px; max-width: 40em; }
.notes { margin: 12px 0 0; padding: 0 0 0 18px; color: var(--muted); font-size: 15px; }
.notes li { margin-bottom: 4px; }
.notes li::marker { color: var(--line-strong); }
.get-more { margin-top: 20px; }

/* ---- FAQ ---- */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; align-items: start; }
.faq-list { border-bottom: 1px solid var(--line); }
details { border-top: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font: 600 18px/1.35 var(--body); }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-top: 6px; border-right: 1.8px solid var(--muted); border-bottom: 1.8px solid var(--muted); transform: rotate(45deg); transition: transform .15s ease; }
details[open] summary::after { transform: translateY(5px) rotate(225deg); }
summary:hover { color: var(--accent-text); }
details p { color: var(--muted); max-width: 40em; }
details p:last-child { padding-bottom: 10px; }

/* ---- Footer ---- */
.foot { margin-top: clamp(80px, 10vw, 140px); border-top: 1px solid var(--line); }
.foot-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) auto; gap: 32px 48px; padding-top: 36px; padding-bottom: 48px; font-size: 14px; color: var(--muted); }
.foot-brand { display: flex; gap: 12px; align-items: flex-start; }
.foot-brand b { display: block; font: 600 19px/1.1 var(--display); color: var(--text); letter-spacing: -0.02em; margin-bottom: 6px; }
.foot-legal p { margin-bottom: 8px; max-width: 46em; }
.foot-legal a { color: var(--muted); }
.foot-dev { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-size: 12px; }
.foot-dev .arfep { width: 92px; height: auto; opacity: .9; }

/* ---- Download page ---- */
.page-head { padding-top: clamp(36px, 6vw, 80px); }
.page-head h1 { font-weight: 800; font-size: clamp(44px, 6vw, 80px); line-height: .95; letter-spacing: -0.03em; margin-bottom: 18px; }
.page-head p { max-width: 38em; font-size: 18px; }
.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); padding-top: 48px; }
.plat { border-top: 2px solid var(--line-strong); padding-top: 24px; }
.plat.mine { border-top-color: var(--accent); }
.plat h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(28px, 3vw, 38px); margin-bottom: 14px; }
.plat h2 svg { width: 30px; height: 30px; color: var(--muted); }
.plat .btn { margin: 8px 0 18px; }
.meta { display: grid; grid-template-columns: max-content 1fr; gap: 6px 22px; margin: 0 0 22px; font-size: 15px; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; }
.plat h3 { font-size: 17px; margin: 26px 0 10px; }
.plat ol { padding-left: 20px; margin: 0; color: var(--muted); }
.plat ol li { margin-bottom: 8px; }
.plat ol b { color: var(--text); font-weight: 600; }
.ps5-set h2 { font-size: clamp(26px, 2.6vw, 34px); }
.ps5-set .set { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; }
.ps5-set ul { list-style: none; margin: 0; padding: 0; }
.ps5-set li { border-top: 1px solid var(--line); padding: 14px 0; }
.ps5-set li span { display: block; color: var(--muted); font-size: 14px; }
.changes h2 { margin-bottom: 20px; }
.change { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 8px 40px; padding: 20px 0; border-top: 1px solid var(--line); }
.change:last-child { border-bottom: 1px solid var(--line); }
.change b { font: 600 17px/1.3 var(--display); display: block; }
.change .when { color: var(--muted); font-size: 14px; }
.change .notes { margin: 0; }
.empty { color: var(--muted); }

@media (max-width: 980px) {
	main > .hero { grid-template-columns: 1fr; }
	.hero-side { max-width: 560px; }
	.scene-list { grid-template-columns: 1fr; }
	.scene-list .friends { display: none; }
	.share, .subs-in, .faq, .ps5-set .set { grid-template-columns: 1fr; }
	.devices { grid-template-columns: 1fr; }
	.phone { max-width: 320px; margin: 0 auto; order: 2; }
	.steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
	.dl { grid-template-columns: 1fr; }
	.foot-in { grid-template-columns: 1fr; }
	.foot-dev { align-items: flex-start; }
}
@media (max-width: 680px) {
	.top nav { display: none; }
	.top-dl { margin-left: auto; }
	.hero h1 { font-size: clamp(44px, 13vw, 64px); }
	.buttons .btn { flex: 1 1 100%; }
	.win-bar .win-icon { display: none; }
	.win-body { height: 420px; }
	.scene-list { padding: 18px 18px; }
	.hello { font-size: 28px; }
	.sub { white-space: normal; width: 88%; }
	.demo figcaption { flex-direction: column; gap: 6px; }
	.facts div { grid-template-columns: 1fr; gap: 4px; }
	.two { grid-template-columns: 1fr; gap: 24px; }
	.steps { grid-template-columns: 1fr; }
	.platforms { grid-template-columns: 1fr; }
	.change { grid-template-columns: 1fr; }
	.share-mock { padding: 18px 16px 4px; }
}
@media (prefers-reduced-motion: reduce) {
	.scene, .sub .tr, .demo-connect, summary::after { transition: none; }
	.demo[data-step="connect"] .orbit .sat { animation: none; }
}
