/*
 * skin-profile.com -- the Mini App's dark theme (resources/js/app/styles/tokens.css)
 * and its sponge mascot. No web fonts: the system stack loads instantly.
 */
:root {
    --bg: #141416;
    --bg-2: #18181c;
    --card: #1f1f23;
    --field: #2a2a2f;
    --line: #2e2e34;
    --text: #ffffff;
    --text-2: #a1a1a8;
    --accent: #7c7cf8;
    --accent-soft: rgb(124 124 248 / 0.16);
    --brand: #cf8ef5;
    --ok: #34c77b;
    --warn: #f5b83d;
    --risk: #ff5c5c;
    --radius: 20px;
    --max: 1120px;
    color-scheme: dark;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.55 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1,
h2,
h3 {
    line-height: 1.2;
    margin: 0;
    overflow-wrap: break-word;
}

p {
    margin: 0;
}

.wrap {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 72px 0;
}

.section--alt {
    background: var(--bg-2);
}

.section-head {
    max-width: 720px;
    margin: 0 auto 40px;
    text-align: center;
}

.section-head h2 {
    font-size: clamp(26px, 4vw, 36px);
}

.section-head p {
    margin-top: 12px;
    color: var(--text-2);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgb(20 20 22 / 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.header .wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-weight: 700;
    font-size: 17px;
}

.logo:hover {
    text-decoration: none;
}

.logo img {
    width: 30px;
    height: 30px;
}

.nav {
    display: flex;
    gap: 22px;
    margin-left: auto;
}

.nav a {
    color: var(--text-2);
    font-size: 15px;
}

.nav a:hover {
    color: var(--text);
    text-decoration: none;
}

.lang {
    display: flex;
    gap: 2px;
    padding: 3px;
    border-radius: 999px;
    background: var(--card);
    font-size: 13px;
    font-weight: 600;
}

.lang a,
.lang span {
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--text-2);
}

.lang span {
    background: var(--field);
    color: var(--text);
}

.lang a:hover {
    color: var(--text);
    text-decoration: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 14px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    white-space: nowrap;
}

.btn:hover {
    text-decoration: none;
    filter: brightness(1.08);
}

.btn svg {
    width: 20px;
    height: 20px;
    flex: none;
}

.btn--small {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 11px;
    font-size: 14px;
}

/* Hero */
.hero {
    padding: 64px 0 72px;
    background: radial-gradient(60% 70% at 85% 30%, rgb(207 142 245 / 0.18), transparent 70%);
}

.hero .wrap {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 48px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(32px, 4.6vw, 50px);
    letter-spacing: -0.02em;
}

.hero h1 em {
    font-style: normal;
    color: var(--brand);
}

.hero .lead {
    margin-top: 18px;
    font-size: clamp(17px, 2vw, 20px);
    color: var(--text-2);
    max-width: 560px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
    margin-top: 28px;
}

.hero-note {
    color: var(--text-2);
    font-size: 14px;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-visual .phone {
    width: min(320px, 78%);
    border-radius: 34px;
    border: 8px solid #2b2b31;
    box-shadow: 0 30px 80px rgb(0 0 0 / 0.55);
}


/* Steps and features */
.grid {
    display: grid;
    gap: 16px;
}

.grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    padding: 24px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--line);
}

.card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.card p {
    color: var(--text-2);
    font-size: 15px;
}

.icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    border-radius: 13px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 700;
    font-size: 18px;
}

.icon svg {
    width: 22px;
    height: 22px;
}

/* Screens */
.screens {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.screens figure {
    margin: 0;
    text-align: center;
}

.screens img {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    border-radius: 26px;
    border: 6px solid #2b2b31;
}

.screens figcaption {
    margin-top: 12px;
    color: var(--text-2);
    font-size: 14px;
}

/* SEO text */
.article {
    max-width: 820px;
    margin: 0 auto;
}

.article h2 {
    font-size: clamp(24px, 3.5vw, 32px);
    text-align: center;
    margin-bottom: 24px;
}

.article h3 {
    font-size: 20px;
    margin: 28px 0 10px;
}

.article p,
.article li {
    color: var(--text-2);
}

.article p + p {
    margin-top: 12px;
}

.article ul {
    padding-left: 20px;
}

.collapsible {
    position: relative;
    max-height: 420px;
    overflow: hidden;
}

.collapsible::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 140px;
    background: linear-gradient(transparent, var(--bg));
}

.collapsible.is-open {
    max-height: none;
}

.collapsible.is-open::after {
    display: none;
}

.more {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.more button {
    font: inherit;
    font-weight: 600;
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    cursor: pointer;
}

/* FAQ */
.faq {
    max-width: 820px;
    margin: 0 auto;
    display: grid;
    gap: 10px;
}

.faq details {
    border-radius: 16px;
    background: var(--card);
    border: 1px solid var(--line);
}

.faq summary {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: '+';
    color: var(--accent);
    font-size: 22px;
    line-height: 1;
}

.faq details[open] summary::after {
    content: '−';
}

.faq details p {
    padding: 0 20px 18px;
    color: var(--text-2);
}

/* CTA */
.cta {
    text-align: center;
    padding: 56px 24px;
    border-radius: 28px;
    background: radial-gradient(80% 120% at 50% 0%, rgb(124 124 248 / 0.28), var(--card) 70%);
    border: 1px solid var(--line);
}

.cta img {
    width: 110px;
    height: 110px;
    margin: 0 auto 12px;
}

.cta h2 {
    font-size: clamp(26px, 4vw, 36px);
}

.cta p {
    margin: 12px auto 26px;
    max-width: 560px;
    color: var(--text-2);
}

/* Footer */
.footer {
    padding: 48px 0 32px;
    border-top: 1px solid var(--line);
    color: var(--text-2);
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
}

.footer h3 {
    color: var(--text);
    font-size: 15px;
    margin-bottom: 12px;
}

.footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.footer a {
    color: var(--text-2);
}

.footer a:hover {
    color: var(--text);
}

.footer .disclaimer {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 13px;
}

/* Legal pages */
.legal {
    max-width: 780px;
    margin: 0 auto;
    padding: 48px 20px 72px;
}

.legal h1 {
    font-size: clamp(25px, 7vw, 40px);
}

.legal .updated {
    margin-top: 8px;
    color: var(--text-2);
    font-size: 14px;
}

.legal h2 {
    font-size: 20px;
    margin: 32px 0 10px;
}

.legal p,
.legal li {
    color: var(--text-2);
}

.legal ul {
    padding-left: 20px;
}

.legal li + li {
    margin-top: 6px;
}

/* 404 */
.notfound {
    min-height: 70vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 48px 20px;
}

.notfound img {
    width: 140px;
    height: 140px;
    margin: 0 auto 16px;
}

.notfound h1 {
    font-size: 30px;
}

.notfound p {
    margin: 10px 0 24px;
    color: var(--text-2);
}

.notfound .actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* Responsive */
@media (max-width: 960px) {
    .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .nav {
        display: none;
    }

    .lang {
        margin-left: auto;
    }

    .header .btn {
        display: none;
    }

    .section {
        padding: 56px 0;
    }

    .hero {
        padding: 40px 0 56px;
    }

    .hero .wrap {
        grid-template-columns: 1fr;
        gap: 36px;
    }


    .screens {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 560px) {
    .grid--4,
    .grid--3 {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-note {
        text-align: center;
    }
}
