/* EMTweaks site. Drawn to match the app: flat colour, square corners, one
   solid purple button, hairlines where a box is not needed. Hanken Grotesk for
   everything, Mona Sans light for the big numbers. Nothing glows. */
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/HankenGrotesk-LatinExt.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; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/HankenGrotesk-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: "Mona Sans"; font-style: normal; font-weight: 200 900; font-stretch: 100%; font-display: swap; src: url("fonts/MonaSans-Variable.woff2") format("woff2"); }

:root {
  --bg: #08090b;
  --panel: #121118;
  --panel2: #17161f;
  --hover: #1c1b26;
  --border: #23212c;
  --border-lit: #353241;
  --text: #f3f1f8;
  --sub: #b3afc2;
  --faint: #7f7a8e;
  --accent: #9d5cff;
  --accent-hover: #ab74ff;
  --hi: #dccbff;
  --green: #34d399;
  --gold: #f3c33d;
  --font: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --num: "Mona Sans", "Hanken Grotesk", "Segoe UI", sans-serif;
  --r: 4px;
  --r-s: 3px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
/* smooth scrolling comes from the Lenis script on desktop; these are its hooks */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
section[id] { scroll-margin-top: 78px; }
::selection { background: rgba(157,92,255,.4); color: #fff; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, .btn { font-family: inherit; }
.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
h1, h2, h3 { margin: 0; }
h2.display { font-weight: 650; font-size: clamp(27px, 3.2vw, 40px); line-height: 1.12; letter-spacing: -0.028em; }
.eyebrow { font-size: 13.5px; font-weight: 600; color: var(--hi); margin-bottom: 12px; }
.lede { color: var(--sub); font-size: 17px; max-width: 62ch; margin: 14px 0 0; }

/* buttons: one solid purple, the rest outlined */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 20px; border-radius: var(--r-s); font-weight: 650; font-size: 15px; border: 1px solid var(--border-lit); background: rgba(255,255,255,.03); color: var(--text); cursor: pointer; transition: background .12s ease, border-color .12s ease; white-space: nowrap; }
.btn:hover { background: rgba(255,255,255,.07); border-color: #47435a; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #1a1200; }
.btn.gold:hover { background: #f7cf5c; border-color: #f7cf5c; }
.btn.small { height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(8,9,11,.92); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.nav.scrolled { border-bottom-color: var(--border); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand .mark { width: 30px; height: 30px; border-radius: var(--r-s); background: var(--accent); display: grid; place-items: center; }
.brand .mark svg { width: 13px; height: 21px; }
.brand .word { font-size: 17.5px; font-weight: 650; letter-spacing: -0.02em; line-height: 1; }
.nav-links { display: flex; gap: 22px; margin-left: 8px; }
.nav-links a { font-size: 14px; font-weight: 600; color: var(--sub); }
.nav-links a:hover { color: var(--text); }
.nav .spacer { flex: 1; }
.nav .actions { display: flex; gap: 8px; }

/* hero */
.hero { position: relative; padding: 64px 0 36px; overflow: hidden; }
.hero .wrap, .final .wrap { position: relative; z-index: 1; }
.final { position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.5fr); gap: 44px; align-items: center; }
@media (min-width: 1200px) { .hero .shot { width: calc(100% + min(9vw, (100vw - var(--max)) / 2 - 24px)); max-width: none; } }
.hero h1 { font-weight: 650; font-size: clamp(35px, 4.4vw, 58px); line-height: 1.04; letter-spacing: -0.035em; }
.hero .lede { font-size: 18px; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.hero .fine { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; font-size: 13px; color: var(--faint); }
.hero .fine span { display: inline-flex; align-items: center; gap: 7px; }
.hero .fine svg { width: 14px; height: 14px; color: var(--green); }

/* a screenshot of the app, framed with one hairline */
.shot { position: relative; margin: 0; border-radius: var(--r); border: 1px solid var(--border-lit); background: var(--panel); overflow: hidden; }
.shot img { width: 100%; }
.shot figcaption { padding: 9px 14px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--faint); background: var(--bg); }

/* Motion. Things move, nothing glows: the hero copy rises in, the app picture
   slides in and then leans toward the cursor, and cards, covers and pictures
   lift a little when you point at them. */
.hero .eyebrow, .hero h1, .hero .lede, .hero .cta, .hero .fine { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero h1 { animation-delay: .07s; }
.hero .lede { animation-delay: .14s; }
.hero .cta { animation-delay: .21s; }
.hero .fine { animation-delay: .28s; }
.hero .shot { animation: shot-in .9s cubic-bezier(.2,.7,.2,1) .2s both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes shot-in { from { opacity: 0; transform: translateX(28px) scale(.985); } to { opacity: 1; transform: none; } }
.hero-shot { will-change: transform; transform-style: preserve-3d; }
.btn { transition: background .12s ease, border-color .12s ease, transform .12s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.plan, .panel, .vouch { transition: transform .22s ease, border-color .2s ease, opacity .55s ease; }
.plan:hover, .panel:hover, .vouch:hover { transform: translateY(-3px); border-color: var(--border-lit); }
.plan.hot:hover { border-color: rgba(243,195,61,.8); }
.tool .shot { transition: transform .4s cubic-bezier(.2,.7,.2,1), border-color .25s ease; }
.tool:hover .shot { transform: translateY(-5px); border-color: #4a4660; }
.cover { transition: transform .3s cubic-bezier(.2,.7,.2,1), border-color .25s ease; }
.cover img { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.cover:hover { transform: translateY(-6px); border-color: var(--accent); }
.cover:hover img { transform: scale(1.05); }
.point { transition: border-color .2s ease; }
.point:hover { border-top-color: var(--accent); }
.shot img { transition: opacity .5s ease; }
img.fade { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow, .hero h1, .hero .lede, .hero .cta, .hero .fine, .hero .shot { animation: none; }
}

/* reveal on scroll (classes set by site.js); without JS everything is visible */
.js :where(.reveal) { opacity: 0; transform: translateY(12px); transition: opacity .55s ease, transform .55s ease; }
.js :where(.reveal.in) { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js :where(.reveal) { opacity: 1; transform: none; transition: none; } }

/* the numbers band */
.proof { padding: 34px 0 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat { position: relative; padding: 24px 28px; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 1px; background: var(--border); }
.stat b { display: block; font-family: var(--num); font-weight: 360; font-size: 38px; line-height: 1; letter-spacing: -.03em; }
.stat span { display: block; font-size: 13.5px; color: var(--sub); margin-top: 10px; white-space: nowrap; }

/* sections */
section.block { padding: 88px 0 0; }

main, footer { position: relative; z-index: 1; }
.head { max-width: 740px; }

/* three or four plain columns under one hairline: a title and a sentence, no boxes */
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px; margin-top: 36px; }
.points.four { grid-template-columns: repeat(4, 1fr); }
.point { border-top: 1px solid var(--border-lit); padding: 18px 0 0; }
.point h3 { font-size: 16.5px; font-weight: 650; letter-spacing: -0.01em; }
.point p { margin: 7px 0 0; color: var(--sub); font-size: 14.5px; }
.point .tag { display: block; font-size: 12.5px; font-weight: 600; color: var(--green); margin-bottom: 6px; }

/* games: one row of cover art, scrolling, pause on hover */
.games-block .wrap + .marquee { margin-top: 32px; }
.marquee { position: relative; overflow: hidden; padding: 4px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee .track { display: flex; width: max-content; animation: slide 80s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee .set { display: flex; gap: 12px; padding-right: 12px; }
.cover { position: relative; margin: 0; width: 172px; aspect-ratio: 3 / 4; border-radius: var(--r-s); overflow: hidden; border: 1px solid var(--border-lit); background: var(--panel); flex-shrink: 0; }
.cover img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
/* the cover art already carries each game's name; the caption is kept for screen readers only */
.cover figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-note { margin: 16px 0 0; font-size: 13.5px; color: var(--faint); }

/* a feature: words on one side, a screenshot on the other */
.tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; align-items: center; padding: 44px 0; border-top: 1px solid var(--border); }
.tool.flip { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.tool.flip .copy { order: 2; }
.tool .copy h3 { font-size: 25px; font-weight: 650; letter-spacing: -.022em; line-height: 1.15; }
.tool .copy p { color: var(--sub); font-size: 16px; margin: 12px 0 0; }
.tool ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.tool li { position: relative; padding-left: 16px; font-size: 14.5px; color: var(--sub); }
.tool li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 2px; background: var(--accent); }
.label { display: block; font-size: 12.5px; font-weight: 650; color: var(--faint); margin-bottom: 9px; }
.label.plus { color: var(--gold); }
.label.free { color: var(--green); }
.first-tool { margin-top: 30px; }

/* how it works */
.how-grid { --dur: 6s; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 40px; align-items: center; margin-top: 34px; }
.how-steps { display: grid; gap: 0; }
.how-step { position: relative; overflow: hidden; text-align: left; font: inherit; color: inherit; background: transparent; border: none; border-top: 1px solid var(--border); border-radius: 0; padding: 18px 2px 20px; cursor: pointer; opacity: .5; transition: opacity .25s ease; }
.how-step:hover { opacity: .85; }
.how-step.is-active { opacity: 1; }
.how-step .n { font-family: var(--num); font-weight: 500; font-size: 13px; color: var(--hi); }
.how-step h3 { font-size: 19px; font-weight: 650; letter-spacing: -.015em; margin-top: 5px; }
.how-step p { color: var(--sub); font-size: 14.5px; margin: 8px 0 0; }
.how-step .bar { position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.how-step.is-active .bar { animation: fill var(--dur) linear forwards; }
.how-grid.paused .how-step.is-active .bar { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }
.how-frames { position: relative; aspect-ratio: 1584 / 800; background: var(--bg); }
.how-frames img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .4s ease; }
.how-frames img.is-active { opacity: 1; }

/* vouches: the look of the Discord channel they come from */
.vouch-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.vouches { columns: 3; column-gap: 12px; margin-top: 30px; }
.vouch { break-inside: avoid; margin: 0 0 12px; background: #17181d; border: 1px solid #26272f; border-radius: var(--r); padding: 14px 16px 13px; display: grid; grid-template-columns: 40px 1fr; gap: 12px; }
.vouch .pfp { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: block; background: #2b2d35; position: relative; }
.vouch .pfp img { width: 100%; height: 100%; object-fit: cover; }
.vouch .pfp.solid { background: var(--c, #5865f2); display: grid; place-items: center; }
.vouch .pfp.solid svg { width: 22px; height: 22px; }
.vouch .meta { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.vouch .meta b { font-size: 15px; font-weight: 600; color: #f2f3f5; }
.vouch .meta time { font-size: 12px; color: #80848e; }
.vouch p { margin: 3px 0 0; font-size: 15px; line-height: 1.45; color: #dbdee1; white-space: pre-wrap; }
.vouch .edited { font-size: 10px; color: #80848e; }

/* pricing */
.plans { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 12px; margin-top: 30px; align-items: stretch; }
.plan { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; }
.plan.hot { border-color: rgba(243,195,61,.5); }
.plan .tier { font-size: 15px; font-weight: 650; color: var(--text); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.plan .tier .note { font-size: 12.5px; font-weight: 600; color: var(--gold); }
.plan .price { font-family: var(--num); font-weight: 360; font-size: 42px; line-height: 1; margin-top: 16px; letter-spacing: -.03em; }
.plan .price small { font-family: var(--font); font-size: 14px; font-weight: 500; color: var(--sub); margin-left: 8px; letter-spacing: 0; }
.plan .under { font-size: 13.5px; color: var(--sub); margin-top: 8px; min-height: 21px; }
.plan .under b { color: var(--text); font-weight: 650; }
.plan .under .save { color: var(--green); font-weight: 650; margin-left: 6px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 9px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 14.5px; color: var(--sub); }
.plan li svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; margin-top: 3px; }
.plan li.off { color: var(--faint); }
.plan li.off svg { color: var(--faint); }
.plan .btn { width: 100%; }
.tiers-note { margin-top: 14px; font-size: 13.5px; color: var(--faint); }

/* console guides and affiliates: two plain panels */
.cons, .aff { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
.aff { grid-template-columns: 1.2fr 1fr; }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; }
.panel h3 { font-size: 19px; font-weight: 650; letter-spacing: -.015em; }
.panel p { margin: 9px 0 0; color: var(--sub); font-size: 15px; }
.panel ul { list-style: none; padding: 0; margin: 14px 0 20px; display: grid; gap: 7px; flex: 1; }
.panel li { position: relative; padding-left: 16px; font-size: 14px; color: var(--sub); }
.panel li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 2px; background: var(--accent); }
.panel .btn { align-self: flex-start; }
.aff .big { font-family: var(--num); font-weight: 360; font-size: 52px; line-height: 1; letter-spacing: -.03em; }
.aff .big small { font-family: var(--font); font-size: 15px; font-weight: 500; color: var(--sub); margin-left: 10px; letter-spacing: 0; }
.aff ol { margin: 14px 0 0; padding-left: 18px; color: var(--sub); font-size: 14.5px; display: grid; gap: 6px; }

/* faq: rows, not boxes */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; margin-top: 26px; align-items: start; }
.faq-col { display: grid; }
details { border-top: 1px solid var(--border); }
summary { cursor: pointer; list-style: none; padding: 17px 0; font-weight: 650; font-size: 15.5px; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--faint); font-weight: 400; font-size: 20px; line-height: 1; transition: transform .2s ease; }
details.is-open summary::after { transform: rotate(45deg); }
details p { margin: 0 0 18px; color: var(--sub); font-size: 14.5px; }
details .fold { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
details .fold > div { overflow: hidden; }
details.is-open .fold { grid-template-rows: 1fr; }

/* the last word, and the footer */
.final { margin-top: 88px; padding: 60px 0; border-top: 1px solid var(--border); text-align: center; }
.final h2 { font-weight: 650; font-size: clamp(27px, 3.2vw, 42px); letter-spacing: -.028em; }
.final .lede { margin-left: auto; margin-right: auto; }
.final .cta { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
footer { border-top: 1px solid var(--border); padding: 26px 0 36px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; font-size: 13px; color: var(--faint); }
footer a:hover { color: var(--text); }
footer .legal { width: 100%; margin-top: 6px; }

/* smaller screens */
@media (max-width: 1040px) {
  .points.four { grid-template-columns: repeat(2, 1fr); gap: 22px 28px; }
  .vouches { columns: 2; }
}
@media (max-width: 900px) {
  .hero { padding-top: 44px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 30px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
  .stat { padding: 20px 22px; }
  .stat b { font-size: 31px; }
  .stat span { white-space: normal; }
  .points { grid-template-columns: 1fr; gap: 22px; }
  .how-grid { grid-template-columns: 1fr; gap: 18px; }
  .how-visual { order: -1; }
  .tool, .tool.flip { grid-template-columns: 1fr; gap: 20px; padding: 36px 0; }
  .tool.flip .copy { order: 0; }
  .plans, .aff, .cons, .faq { grid-template-columns: 1fr; }
  section.block { padding-top: 64px; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav .wrap { height: 58px; }
  .wrap { width: calc(100% - 32px); }
  .points.four { grid-template-columns: 1fr; }
  .cover { width: 132px; }
  .vouches { columns: 1; }
  .vouch-head { flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: 35px; }
  .nav .actions .btn:first-child { display: none; }
}

/* language menu (added by tools/site-i18n/build.cjs) */
.nav .actions .lang { order: -1; position: relative; }
details.lang { border-top: 0; }
.lang > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 11px; border-radius: var(--r-s); border: 1px solid var(--border); color: var(--sub); font-size: 13px; font-weight: 650; user-select: none; }
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary::after, .lang > summary::before { content: none !important; display: none !important; }
.lang > summary:hover, .lang[open] > summary { color: var(--text); border-color: var(--border-lit); }
.lang > summary svg { width: 15px; height: 15px; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 172px; max-height: min(82vh, 540px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border-lit) transparent; padding: 6px; background: var(--panel2); border: 1px solid var(--border-lit); border-radius: var(--r-s); display: grid; }
.lang-menu a { padding: 8px 10px; border-radius: 3px; font-size: 14px; font-weight: 500; color: var(--text); white-space: nowrap; }
.lang-menu a:hover { background: rgba(255,255,255,.06); }
.lang-menu a[aria-current="true"] { font-weight: 650; color: var(--hi); }
/* phones: the globe alone, so the logo, the menu and the download button fit one row */
@media (max-width: 760px) {
  .nav .wrap { gap: 10px; }
  .lang > summary { padding: 0 10px; }
  .lang > summary span { display: none; }
  .nav .actions .btn.small { padding: 0 12px; }
}
