/* Copyright 2026-Present Aktis Inc.
   The look of the static pages of atplayer.com: home, blog, help center, legal texts, contact.
   The Redline design: carbon black, graphite surfaces, one deep crimson accent, Inter in medium
   weights with tight tracking, white or charcoal controls with small corners, thin lines and a lot
   of space. Sides are written as inline-start and inline-end so the same rules lay out right to
   left languages.
   author Andrew Terekhine
   since 2026-11-24 */

/* Inter, one file per script so a page loads only what its language needs */
@font-face {
    font-family: Inter;
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(inter-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: Inter;
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(inter-latin-ext.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
        U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113,
        U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: Inter;
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(inter-vietnamese.woff2) format("woff2");
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0,
        U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
    font-family: Inter;
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(inter-cyrillic.woff2) format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: Inter;
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(inter-cyrillic-ext.woff2) format("woff2");
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
    font-family: Inter;
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(inter-greek.woff2) format("woff2");
    unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
    font-family: Inter;
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(inter-greek-ext.woff2) format("woff2");
    unicode-range: U+1F00-1FFF;
}

:root {
    --carbon: #09090b;
    --graphite: #141416;
    --raised: #1c1c1f;
    --oxblood: #470910;
    --crimson: #b81829;
    --line: rgba(255, 255, 255, .08);
    --line-strong: rgba(255, 255, 255, .16);
    --text: #f4f4f5;
    --body: #d4d4d8;
    --soft: #a1a1aa;
    --faint: #71717a;
    --error: #f87171;
    --warn: #fbbf24;
    --radius: 12px;
    --control: 6px;
    --wide: 1200px;
    --narrow: 760px;
    --bar: 64px;
    --gap: clamp(72px, 11vw, 140px);
    /* tracking and tight lines are for Latin, Cyrillic and Greek only (html.tight), other scripts
       join their letters or stand taller and keep the font's own spacing */
    --track-display: 0;
    --track-title: 0;
    --track-label: 0;
    --lead-display: 1.25;
    --lead-title: 1.32;
    color-scheme: dark;
}
html.tight {
    --track-display: -.035em;
    --track-title: -.025em;
    --track-label: .08em;
    --lead-display: 1.04;
    --lead-title: 1.16;
}
/* the big lines are a size smaller where the letters are wider or taller than Latin ones */
html:not(.tight) .hero h1 { font-size: clamp(38px, 6.6vw, 68px); }
html:not(.tight) .page-head h1, html:not(.tight) .cta h2 { font-size: clamp(34px, 5.2vw, 56px); }
html:not(.tight) .intro h2 { font-size: clamp(30px, 4.4vw, 48px); }

* { box-sizing: border-box; }

/* the script hides things with the hidden attribute, a display rule of a class must not undo it */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 32px); }

body {
    margin: 0;
    background: var(--carbon);
    color: var(--text);
    font: 17px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans",
        "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
}

main { flex: 1; width: 100%; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
h1, h2, h3 {
    margin: 0;
    font-weight: 500;
    line-height: var(--lead-title);
    letter-spacing: var(--track-title);
    text-wrap: balance;
}
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }

.icon { fill: currentColor; flex: none; }
.wrap { max-width: var(--wide); margin-inline: auto; padding-inline: 24px; }
.narrow { max-width: var(--narrow); }
.center { margin-inline: auto; }
.label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: var(--track-label);
    text-transform: uppercase;
    color: var(--soft);
}

/* top bar, a floating rounded strip */

.top { position: sticky; top: 0; z-index: 20; padding: 12px 16px 0; }
.top-in {
    position: relative;
    max-width: 1240px;
    margin-inline: auto;
    height: var(--bar);
    padding-inline: 20px 10px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    background: rgba(16, 16, 18, .54);
    -webkit-backdrop-filter: saturate(170%) blur(22px);
    backdrop-filter: saturate(170%) blur(22px);
    border: 1px solid var(--line);
    border-radius: 16px;
}
.logo { justify-self: start; display: flex; align-items: center; }
/* the app's own mark as it is, the icon as tall as the letters */
.logo-mark { display: block; height: 30px; width: auto; }
.nav { display: flex; gap: 4px; }
.nav a {
    color: var(--soft);
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--control);
    transition: color .15s ease;
}
.nav a:hover, .nav a[aria-current] { color: var(--text); }
.nav .nav-download { display: none; }
.top-side { justify-self: end; display: flex; align-items: center; gap: 4px; }
.lang-button, .icon-button, .menu-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 0;
    border-radius: var(--control);
    padding: 8px 10px;
    color: var(--soft);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color .15s ease, background .15s ease;
}
.lang-button:hover, .icon-button:hover, .menu-button:hover { color: var(--text); }
.lang-button span {
    max-width: 9em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.menu-button { display: none; }

/* controls: white for the main action, charcoal for the rest */

.button, .store-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: var(--text);
    color: var(--carbon);
    font-weight: 500;
    font-size: 15px;
    line-height: 1.2;
    padding: 12px 20px;
    border-radius: var(--control);
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s ease, border-color .15s ease;
}
.button:hover, .store-button:hover { background: #fff; }
.button-small { padding: 9px 15px; font-size: 14px; }
/* a long label of another language breaks into two lines instead of pushing the page wide, the
   short ones of the top bar stay on one line */
.help-card .button, .tile .button, .block-head .button, .pager .button {
    white-space: normal;
    text-align: center;
    max-width: 100%;
}
.button-dark {
    background: rgba(255, 255, 255, .07);
    border-color: var(--line);
    color: var(--text);
}
.button-dark:hover { background: rgba(255, 255, 255, .12); border-color: var(--line-strong); }
.store-button { font-size: 17px; font-weight: 600; padding: 14px 26px; }
.stores, .contacts { display: flex; flex-wrap: wrap; gap: 12px; }

/* inside the app's own web view nobody needs a link to the store */
.in-app .store { display: none; }

/* page headings */

.page-head { padding-block: clamp(48px, 8vw, 96px) clamp(28px, 4vw, 48px); }
.page-head h1 {
    font-size: clamp(40px, 6.6vw, 72px);
    letter-spacing: var(--track-display);
    line-height: var(--lead-display);
}
.page-head p {
    color: var(--soft);
    margin-top: 16px;
    max-width: 34em;
    font-size: clamp(17px, 2vw, 20px);
}

.crumbs { padding-top: 40px; font-size: 14px; display: flex; flex-wrap: wrap; }
.crumbs a { color: var(--faint); }
.crumbs a:hover { color: var(--text); }
.crumbs a + a::before { content: "/"; margin-inline: 9px; color: var(--faint); }

.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 40px; }
.tabs a {
    color: var(--soft);
    font-size: 14px;
    font-weight: 500;
    padding: 7px 13px;
    border-radius: var(--control);
}
.tabs a:hover { color: var(--text); }
.tabs a[aria-current] { color: var(--text); background: rgba(255, 255, 255, .08); }

/* a small mark next to a title: the page is shown in English */
.note {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    font-style: normal;
    color: var(--soft);
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    padding: 1px 7px;
    white-space: nowrap;
}

/* posts in a list */

.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px; }
.post-card { display: flex; flex-direction: column; gap: 16px; }
.post-cover {
    aspect-ratio: 16 / 10;
    border-radius: 10px;
    overflow: hidden;
    background: var(--graphite);
    border: 1px solid var(--line);
}
.post-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}
.post-card:hover .post-cover img, .lead-post:hover .post-cover img { transform: scale(1.03); }
.post-info { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-labels { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.post-info h3 { font-size: 20px; }
.post-info p {
    color: var(--soft);
    font-size: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-foot { color: var(--faint); font-size: 13px; display: flex; flex-wrap: wrap; }
.dot::before { content: "·"; margin-inline: 8px; }
.posts-small { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
.posts-small .post-info h3 { font-size: 16px; }
.posts-small .post-info p { display: none; }

/* the newest post opens the blog, picture and text side by side */
.lead-post {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 40px;
    align-items: center;
    padding-bottom: 56px;
    margin-bottom: 56px;
    border-bottom: 1px solid var(--line);
}
.lead-post .post-info { gap: 14px; }
.lead-post h2 { font-size: clamp(28px, 3.6vw, 40px); }
.lead-post p { color: var(--soft); font-size: 18px; -webkit-line-clamp: 4; }

.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding-block: 48px 0;
    color: var(--soft);
    font-size: 14px;
}

/* a post, a topic of the help center */

.article-head { padding-block: 20px 8px; display: flex; flex-direction: column; gap: 16px; }
.article-head h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: var(--track-display); }
.article-cover {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    margin-top: 24px;
}

.prose { font-size: 18px; line-height: 1.7; color: var(--body); }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: 28px; margin-top: 2em; color: var(--text); }
.prose h3 { font-size: 21px; margin-top: 1.7em; color: var(--text); }
/* a link inside a text, the buttons of the app card in a post keep their own look */
.prose a:not(.button, .store-button) {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, .32);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}
.prose a:not(.button, .store-button):hover, .feature p a:hover, .rules-data a:hover {
    text-decoration-color: var(--text);
}
.prose ul, .prose ol { padding-inline-start: 1.35em; margin-bottom: 0; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--faint); }
.prose strong { color: var(--text); font-weight: 600; }
.prose img { border-radius: var(--radius); display: block; }
.prose code {
    background: rgba(255, 255, 255, .08);
    padding: 2px 6px;
    border-radius: 6px;
    font-size: .9em;
}
.prose pre {
    background: var(--graphite);
    border: 1px solid var(--line);
    padding: 14px;
    border-radius: var(--radius);
    overflow-x: auto;
}
.prose pre code { background: none; padding: 0; }
.prose blockquote {
    margin-inline: 0;
    padding-inline-start: 16px;
    border-inline-start: 2px solid var(--line-strong);
    color: var(--soft);
}
.table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
.prose th, .prose td {
    text-align: start;
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
.prose th { background: var(--graphite); color: var(--text); font-weight: 500; }
.prose tr:last-child td { border-bottom: 0; }

/* the quick answer of a post */
.answer {
    margin-block: 28px 8px;
    padding: 20px 22px;
    font-size: 19px;
    color: var(--text);
    background: var(--graphite);
    border: 1px solid var(--line);
    border-inline-start: 2px solid var(--crimson);
    border-radius: var(--radius);
    border-start-start-radius: 0;
    border-end-start-radius: 0;
}

/* a video that loads from YouTube after a tap */
.answer + .video { margin-block: 20px 6px; }
.video {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
    border: 1px solid var(--line);
    aspect-ratio: 16 / 9;
}
.video a, .video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.video img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.video .play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--text);
    box-shadow: 0 10px 34px rgba(0, 0, 0, .55);
    transition: transform .2s ease;
}
.video a:hover .play { transform: scale(1.06); }
.video .play::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent var(--carbon);
    transform: translateX(3px);
}

/* the app card of a post and the way to a person under the help pages */
.app-card, .help-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-block: 32px;
    padding: 22px;
    background: var(--graphite);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.app-card img { border-radius: 14px; }
.app-card-text, .help-card > div { flex: 1 1 220px; }
.app-card p, .help-card p { color: var(--soft); font-size: 15px; line-height: 1.45; }
.app-card b, .help-card b { font-size: 18px; font-weight: 500; }
.app-card .store-button { font-size: 15px; padding: 11px 18px; }

/* an ad place: a quiet box of the page with its label, the height is kept free so the text does
   not jump when the ad arrives, a place the network leaves empty folds away */
.ad {
    margin-block: 48px;
    padding: 14px 16px 16px;
    background: var(--graphite);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ad ins, .ad-demo div { display: block; min-height: 250px; }
.ad-demo div { border: 1px dashed var(--line-strong); border-radius: var(--control); }
.ad:has(ins[data-ad-status="unfilled"]), .in-app .ad { display: none; }
.posts + .ad { margin-block: 44px; }

/* questions that fold */
.qa-block { margin-top: 48px; }
.qa-block > h2 { font-size: 28px; margin-bottom: 10px; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    padding-block: 18px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary h2, .qa summary h3 {
    font-size: 18px;
    font-weight: 500;
    flex: 1;
    letter-spacing: 0;
    line-height: 1.4;
    color: var(--body);
    transition: color .15s ease;
}
.qa summary:hover h2, .qa summary:hover h3 { color: var(--text); }
.qa summary::after {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    /* right and bottom, not inline-end: the arrow points down in right to left languages too */
    border-right: 1.5px solid var(--soft);
    border-bottom: 1.5px solid var(--soft);
    transform: rotate(45deg);
    transition: transform .15s ease;
    margin-inline: 4px;
}
.qa[open] summary::after { transform: rotate(-135deg); }
.qa[open] summary h2, .qa[open] summary h3, .qa:target summary h2 { color: var(--text); }
.qa .prose { padding-bottom: 22px; font-size: 17px; }

.related { margin-block: 64px 0; }
.related > h2 { font-size: 24px; margin-bottom: 20px; }
.related-more { margin-top: 18px; font-size: 14px; }
.related-more a { color: var(--soft); }
.related-more a:hover { color: var(--text); }

/* help center */

.help-head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.help-head p { margin-inline: auto; }
.mascot { display: block; width: 88px; height: auto; }
.help-head .mascot { margin-bottom: 20px; }
.search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--graphite);
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--soft);
    transition: border-color .15s ease;
}
.search:focus-within { border-color: var(--soft); }
.search input {
    flex: 1;
    min-width: 0;
    background: none;
    border: 0;
    outline: 0;
    color: var(--text);
    font: inherit;
}
.search-big { width: min(640px, 100%); margin-top: 32px; padding: 15px 18px; font-size: 18px; }
.results { display: flex; flex-direction: column; margin-bottom: 40px; }
.results a { color: var(--body); padding: 14px 4px; border-bottom: 1px solid var(--line); }
.results a:hover { color: var(--text); }
/* the topic of a found question, the number of questions of a found topic */
.results a small { display: block; margin-top: 3px; color: var(--faint); font-size: 13px; }
.results-none {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--soft);
    margin-bottom: 40px;
}
.help-block { margin-top: 56px; }
.help-block > h2 { margin-bottom: 22px; }
.help-block > h2:not(.label) { font-size: 28px; }
.topic {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    color: var(--soft);
    font-size: 15px;
    line-height: 1.4;
    padding-block: 5px;
}
.topic:hover { color: var(--text); }
.topic b { color: var(--faint); font-weight: 400; font-size: 13px; }
.topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
/* every topic of the help center in the order of the support repo's faq.md, read down a column
   and on to the next */
.topics-all { display: block; columns: 3; column-gap: 40px; }
.topics-all .topic { break-inside: avoid; }
.topic { padding-block: 10px; border-bottom: 1px solid var(--line); }
.help-card { margin-top: 64px; }

/* home */

/* the sound waves sit in the middle behind the first lines, one contained picture that fades into
   the black around it on every side, never stretched over the whole width */
.hero {
    position: relative;
    isolation: isolate;
    margin-top: calc(-1 * (var(--bar) + 12px));
    padding-top: calc(var(--bar) + 12px);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 28px 0 auto 0;
    margin-inline: auto;
    width: min(100%, 1160px);
    aspect-ratio: 1672 / 941;
    z-index: -1;
    background: url(hero.webp) center / contain no-repeat;
    -webkit-mask-image: radial-gradient(closest-side, #000 58%, transparent);
    mask-image: radial-gradient(closest-side, #000 58%, transparent);
}
.hero-in {
    text-align: center;
    padding-block: clamp(72px, 12vw, 150px) 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}
.hero h1 {
    font-size: clamp(46px, 8.6vw, 88px);
    font-weight: 600;
    letter-spacing: var(--track-display);
    line-height: var(--lead-display);
}
.hero-motto { font-size: clamp(17px, 2.1vw, 22px); max-width: 40em; text-wrap: balance; }
.hero .stores { justify-content: center; margin-top: 10px; }
.intro {
    max-width: 1088px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
    padding-block: clamp(64px, 10vw, 120px) 0;
}
.intro h2 {
    font-size: clamp(36px, 5.6vw, 62px);
    letter-spacing: var(--track-display);
    line-height: var(--lead-display);
    max-width: 10em;
}
.intro p { color: var(--soft); font-size: 19px; max-width: 24em; margin-top: 20px; }
.platforms { display: flex; gap: 18px; margin-top: 26px; color: var(--soft); }

/* a real capture of the app in a drawn phone frame */
.phone-wrap { display: flex; align-items: flex-end; gap: 26px; }
.phone {
    width: 272px;
    padding: 8px;
    border-radius: 42px;
    background: #060607;
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 50px 100px rgba(0, 0, 0, .65);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 34px; }
.phone-wrap .mascot { width: 150px; margin-bottom: 30px; }

.block { padding-top: var(--gap); }
.block-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 44em; }
.block-head h2 { font-size: clamp(32px, 4.6vw, 48px); }
.block-head p { color: var(--soft); margin-top: 14px; font-size: 19px; }
.block-head-row { display: flex; flex-wrap: wrap; align-items: flex-end;
    justify-content: space-between; gap: 12px 20px; max-width: none; }
.more { color: var(--soft); font-size: 15px; font-weight: 500;
    display: inline-flex; align-items: center; gap: 6px; }
.more:hover { color: var(--text); }
/* an arrow points the way the language reads */
[dir="rtl"] .more .icon, [dir="rtl"] .help-card .button .icon { transform: scaleX(-1); }

/* the way into the web player: four cards under the first screen, a picture over two lines */
.explore-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.explore-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--graphite);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .15s ease;
}
.explore-card:hover { border-color: var(--line-strong); }
.explore-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform .6s ease;
}
.explore-card:hover img { transform: scale(1.03); }
.explore-card div { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; }
.explore-card b { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 500; }
.explore-card span { color: var(--soft); font-size: 15px; line-height: 1.5; }

/* four wide pictures with a line of text over each, the way a car maker shows a model */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: var(--gap); }
.tile {
    position: relative;
    isolation: isolate;
    display: block;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--graphite);
    border: 1px solid var(--line);
}
.tile img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s ease;
}
.tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, rgba(9, 9, 11, .94), rgba(9, 9, 11, .4) 55%,
        rgba(9, 9, 11, .1));
}
.tile:hover img { transform: scale(1.03); }
.tile-text {
    position: absolute;
    inset: auto 0 0 0;
    padding: clamp(18px, 3vw, 32px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}
.tile h3 { font-size: clamp(24px, 2.9vw, 34px); }
.tile p { color: var(--body); font-size: 16px; max-width: 26em; }
.tile .button { margin-top: 10px; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.feature {
    display: grid;
    grid-template-columns: auto 1fr;
    align-content: start;
    gap: 4px 14px;
    padding-block: 22px;
    border-top: 1px solid var(--line);
}
.feature .icon { grid-row: span 2; margin-top: 4px; color: var(--soft); }
.feature b { font-size: 17px; font-weight: 500; }
.feature p { color: var(--soft); font-size: 15px; line-height: 1.5; grid-column: 2; }
.feature p a, .rules-data a {
    color: var(--body);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, .32);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

/* what the app does with YouTube and with user data, said plainly */
.rules {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 4vw, 56px);
    padding: clamp(24px, 4vw, 48px);
    background: var(--graphite);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.rules h2 { font-size: clamp(26px, 3.2vw, 36px); }
.rules > div > p { color: var(--soft); margin-top: 14px; }
.rules ul { list-style: none; margin: 0; padding: 0; }
.rules li {
    display: flex;
    gap: 12px;
    padding-block: 14px;
    border-bottom: 1px solid var(--line);
    color: var(--body);
}
.rules li:first-child { padding-top: 0; }
.rules li .icon { margin-top: 5px; color: var(--crimson); }
.rules-data { color: var(--soft); font-size: 15px; padding-top: 16px; }

.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
}
.contact h2 { font-size: clamp(32px, 4.6vw, 48px); }
.contact h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px;
    text-underline-offset: 6px; }
.contact p { color: var(--soft); font-size: 19px; }
.contacts { justify-content: center; margin-top: 12px; }

.cta {
    margin-top: var(--gap);
    padding-block: clamp(64px, 10vw, 120px);
    border-top: 1px solid var(--line);
    background: radial-gradient(70% 130% at 50% 135%, rgba(184, 24, 41, .38), transparent 70%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}
.cta h2 {
    font-size: clamp(40px, 6.6vw, 72px);
    letter-spacing: var(--track-display);
    line-height: var(--lead-display);
}
.cta p { color: var(--soft); font-size: 19px; }
.cta .stores { justify-content: center; margin-top: 10px; }
.page-home .bottom { margin-top: 0; }

/* bottom: columns of links, then the mark, the motto and the language */

.bottom { margin-top: var(--gap); border-top: 1px solid var(--line); padding-block: 56px 36px; }
.bottom-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 28px; }
.bottom-col h2 {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--faint);
    margin-bottom: 12px;
}
.bottom-col a {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--soft);
    font-size: 14px;
    padding-block: 5px;
    width: fit-content;
}
.bottom-col a:hover { color: var(--text); }
.bottom-end {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 28px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--faint);
    font-size: 13px;
}
.bottom-end .logo-mark { height: 20px; }
.bottom-end p { margin-inline-end: auto; }
.bottom-end .lang-button { margin-inline-start: -10px; font-size: 13px; }

/* language picker */

.languages {
    width: min(860px, calc(100vw - 24px));
    /* % of the viewport, not vh - the help dialog of the Android app gives its page a viewport
       height of 0 and the box showed as a line */
    max-height: min(680px, calc(100% - 24px));
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: var(--graphite);
    color: var(--text);
    overflow: hidden;
}
.languages[open] { display: flex; flex-direction: column; }
.languages::backdrop {
    background: rgba(0, 0, 0, .6);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.languages-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 14px 10px 22px;
}
.languages-head h2 { font-size: 20px; }
.languages .search { margin: 4px 20px 12px; background: var(--carbon); }
.languages-list {
    overflow-y: auto;
    padding: 4px 14px 18px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 2px;
}
.languages-list a {
    display: flex;
    flex-direction: column;
    padding: 8px 10px;
    border-radius: var(--control);
    color: var(--body);
    font-size: 15px;
    line-height: 1.3;
}
.languages-list a:hover { background: rgba(255, 255, 255, .07); color: var(--text); }
.languages-list a[aria-current] { background: rgba(255, 255, 255, .1); color: var(--text); }
.languages-list a small { color: var(--faint); font-size: 12px; }

/* the offer to read the page in the reader's own language, nothing moves without a tap */
.lang-offer {
    position: fixed;
    inset-inline: 16px;
    bottom: 16px;
    z-index: 30;
    width: fit-content;
    max-width: calc(100vw - 32px);
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--raised);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    padding: 10px 10px 10px 18px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .65);
    font-size: 14px;
    color: var(--body);
}
.lang-offer button {
    display: grid;
    background: none;
    border: 0;
    cursor: pointer;
    color: var(--soft);
    padding: 6px;
    border-radius: 6px;
}
.lang-offer button:hover { color: var(--text); }

/* the English pages of pages/: legal texts, contact, advertising, about */

/* a legal text as it is written: headings are bold lines, lists keep their own numbering (type
   a, i, start), long addresses and license texts break instead of widening the page */
.legal { padding-top: 48px; overflow-wrap: anywhere; }
.legal h1 { font-size: clamp(28px, 4.4vw, 44px); color: var(--text); }
.legal h2 { font-size: 26px; }
.legal h3 { font-size: 20px; }
.legal li > * + * { margin-top: .6em; }
.legal li + li { margin-top: .7em; }
.legal span.underline { text-decoration: underline; }
.legal code, .legal pre { white-space: pre-wrap; }
.legal pre { font-size: 13px; line-height: 1.55; color: var(--soft); }
.legal details { margin-block: .5em 1em; }
.legal summary { cursor: pointer; color: var(--text); font-weight: 500; }
.legal table {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    /* a column is as wide as its longest word, a short one (YES) stays whole */
    overflow-wrap: break-word;
}
.legal tr.odd td { background: rgba(255, 255, 255, .03); }

.page-head .label { display: block; margin-bottom: 18px; }
.page-note { color: var(--soft); text-align: center; font-size: 15px; margin-top: 22px; }
.page-note a, .block-head p a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, .32);
    text-underline-offset: 4px;
}
.page-stores { display: flex; justify-content: center; margin-top: 56px; }

/* a message form: labels over the fields, the error and the letter count under the message */
.form-card {
    margin-top: 48px;
    padding: clamp(20px, 4vw, 36px);
    background: var(--graphite);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.form-card h2 { font-size: 24px; margin-bottom: 22px; }
.form { display: flex; flex-direction: column; gap: 18px; }
.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--body);
    font-size: 14px;
    font-weight: 500;
}
.field small { color: var(--faint); font-size: 13px; font-weight: 400; margin-inline-start: 6px; }
.field input, .field textarea {
    width: 100%;
    background: var(--carbon);
    color: var(--text);
    border: 1px solid var(--line-strong);
    border-radius: var(--control);
    padding: 12px 14px;
    font: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    transition: border-color .15s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--soft); }
/* the count stands right under the message, the error on its own line below it */
.form-note { display: flex; flex-wrap: wrap; gap: 4px; margin-top: -10px; font-size: 13px; }
.form-error { order: 1; flex-basis: 100%; color: var(--error); font-size: 14px; }
.form-count { color: var(--faint); margin-inline-start: auto; }
.form-count[data-state="short"] { color: var(--error); }
.form-count[data-state="long"] { color: var(--warn); }
.form .button { align-self: flex-start; padding-inline: 28px; }

/* advertising: the reach over a dim red light, the numbers, the buying models, the media kit */
.ads-hero {
    padding-block: clamp(56px, 9vw, 112px) clamp(40px, 6vw, 72px);
    text-align: center;
    background: radial-gradient(55% 90% at 50% 0%, rgba(184, 24, 41, .26), transparent 72%);
}
.ads-hero .wrap { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.ads-hero .label { color: var(--body); }
.ads-hero h1 {
    font-size: clamp(38px, 6.4vw, 72px);
    letter-spacing: var(--track-display);
    line-height: var(--lead-display);
}
.ads-hero p { color: var(--soft); font-size: clamp(17px, 2vw, 20px); max-width: 36em; }
.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 30px 16px;
    text-align: center;
    background: var(--carbon);
}
.stat b {
    font-size: clamp(34px, 4.6vw, 52px);
    font-weight: 600;
    letter-spacing: var(--track-display);
    line-height: 1.1;
}
.stat span {
    color: var(--soft);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: var(--track-label);
    text-transform: uppercase;
}
.offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.offer {
    padding: clamp(24px, 3.4vw, 40px);
    background: var(--graphite);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.offer h3 { font-size: 24px; }
.offer > p { color: var(--soft); margin-top: 8px; }
.offer ul { list-style: none; margin: 22px 0 0; padding: 0; }
.offer li {
    display: flex;
    gap: 12px;
    padding-block: 13px;
    border-top: 1px solid var(--line);
    color: var(--body);
}
.offer li .icon { margin-top: 5px; color: var(--crimson); }
.kit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(24px, 4vw, 48px);
    background: radial-gradient(80% 160% at 100% 100%, rgba(184, 24, 41, .22), transparent 70%),
        var(--graphite);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.kit > div { flex: 1 1 300px; }
.kit h2 { font-size: clamp(26px, 3.2vw, 36px); }
.kit p { color: var(--soft); margin-top: 12px; max-width: 32em; }
.kit .button { white-space: normal; text-align: center; }

/* about: the four things the app does, who makes it, the stores */
.about-lines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.about-lines .feature:hover b { text-decoration: underline; text-underline-offset: 4px; }
.about-made, .about-get {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}
.about-made h2, .about-get h2 { font-size: clamp(30px, 4.4vw, 44px); }
.about-made p { color: var(--soft); font-size: 19px; max-width: 34em; }
.about-made .contacts { justify-content: flex-start; margin-top: 8px; }

@media (max-width: 1000px) {
    .topics-all { columns: 2; }
    .explore-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .top-in { grid-template-columns: 1fr auto; padding-inline: 16px 6px; }
    .menu-button { display: inline-flex; }
    .top-side .button { display: none; }
    .nav {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        inset-inline: 0;
        flex-direction: column;
        background: var(--graphite);
        border: 1px solid var(--line);
        border-radius: 16px;
        padding: 8px;
        box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
    }
    .nav.open { display: flex; }
    .nav a { padding: 13px 14px; font-size: 16px; color: var(--text); }
    .nav .nav-download { display: block; }
    .lang-button span { max-width: 6.5em; }
    .intro { grid-template-columns: 1fr; }
    .phone-wrap { justify-self: center; }
    .rules { grid-template-columns: 1fr; }
    .lead-post { grid-template-columns: 1fr; gap: 20px; padding-bottom: 40px; margin-bottom: 40px; }
    .bottom-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .offers { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .wrap { padding-inline: 18px; }
    .top { padding: 8px 10px 0; }
    .hero { margin-top: calc(-1 * (var(--bar) + 8px)); padding-top: calc(var(--bar) + 8px); }
    .hero::before { background-image: url(hero-small.webp); aspect-ratio: 900 / 814; top: 0; }
    .posts, .posts-small { grid-template-columns: 1fr; }
    .posts-small { gap: 24px; }
    .tiles { grid-template-columns: 1fr; }
    .explore-cards { grid-template-columns: minmax(0, 1fr); }
    .tile { aspect-ratio: 4 / 3; }
    .features { grid-template-columns: 1fr; }
    .topics { grid-template-columns: 1fr; }
    .topics-all { columns: 1; }
    .prose { font-size: 17px; }
    .prose h2 { font-size: 24px; }
    .answer { font-size: 17.5px; padding: 16px 18px; }
    .languages-list { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .app-card .store-button { flex: 1 1 100%; }
    .store-button { font-size: 16px; padding: 13px 18px; }
    .phone { width: 244px; }
    .phone-wrap { gap: 0; }
    .phone-wrap .mascot { width: 104px; margin-inline-start: -10px; margin-bottom: 24px; }
    .lang-offer { inset-inline: 10px; bottom: 10px; max-width: calc(100vw - 20px); }
    .legal { padding-top: 32px; }
    .legal table { font-size: 13.5px; }
    .legal th, .legal td { padding: 9px 8px; }
    .about-lines { grid-template-columns: 1fr; }
    .form .button { align-self: stretch; }
    .stat { padding: 22px 10px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}