:root {
    --bg: #faf8fc;
    --surface: #ffffff;
    --surface-soft: #f7f1fa;
    --text: #201b24;
    --muted: #6f6674;
    --line: #e9dfea;
    --brand: #bd2acb;
    --brand-dark: #8d1d9c;
    --brand-soft: #f7e6fa;
    --accent: #ff4f9a;
    --shadow-sm: 0 1px 3px rgba(42, 24, 47, .08), 0 6px 18px rgba(42, 24, 47, .05);
    --shadow-md: 0 12px 35px rgba(87, 28, 96, .12);
    --radius: 18px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.nav-open {
    overflow: hidden;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

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

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 3px solid #15121a;
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 9999;
    left: 16px;
    top: 12px;
    transform: translateY(-180%);
    padding: 10px 14px;
    border-radius: 10px;
    background: #111;
    color: #fff;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: relative;
    z-index: 1000;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(233, 223, 234, .92);
    backdrop-filter: blur(14px);
}

.header-inner {
    width: min(calc(100% - 32px), var(--max));
    min-height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 1.25rem;
    font-weight: 850;
    letter-spacing: -.03em;
}

.brand span {
    color: var(--brand);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-nav a {
    padding: 9px 11px;
    border-radius: 9px;
    color: #544b58;
    font-size: .94rem;
    font-weight: 650;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    background: var(--surface-soft);
    color: var(--brand-dark);
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background: var(--text);
    border-radius: 2px;
}

.ad-container {
    width: min(calc(100% - 32px), var(--max));
    min-height: 110px;
    margin: 22px auto 42px;
    padding: 8px;
    text-align: center;
}

.ad-label {
    display: block;
    margin-bottom: 5px;
    color: #968c99;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.hero {
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: radial-gradient(circle at 15% 15%, rgba(255, 117, 185, .14), transparent 30%),
        radial-gradient(circle at 85% 0%, rgba(189, 42, 203, .12), transparent 32%),
        linear-gradient(180deg, #fff 0%, #fdf9fe 100%);
}

.hero-inner {
    width: min(calc(100% - 32px), 900px);
    margin: 0 auto;
    padding: 72px 0 46px;
    text-align: center;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--brand-dark);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    line-height: 1.17;
    letter-spacing: -.035em;
}

h1 {
    margin: 0;
    font-size: clamp(2.35rem, 7vw, 4.25rem);
}

h2 {
    margin: 0;
    font-size: clamp(1.75rem, 4vw, 2.55rem);
}

h3 {
    font-size: 1.14rem;
}

.hero-copy {
    max-width: 760px;
    margin: 18px auto 0;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.15rem);
}

.trust-row {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    color: #574d5c;
    font-size: .9rem;
}

.section-inner {
    width: min(calc(100% - 32px), var(--max));
    margin: 0 auto;
}

.narrow {
    max-width: 920px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.section-heading p:not(.eyebrow) {
    max-width: 760px;
    margin: 9px 0 0;
    color: var(--muted);
}

.info-section {
    padding: 56px 0;
    background: #fff;
    border-block: 1px solid var(--line);
}

.steps-grid {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.steps-grid li {
    display: flex;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
}

.steps-grid li > span {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-weight: 850;
}

.steps-grid h3 {
    margin: 3px 0 5px;
}

.steps-grid p {
    margin: 0;
    color: var(--muted);
    font-size: .94rem;
}

.content-section {
    padding: 62px 0 34px;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(260px, .8fr);
    gap: 36px;
    align-items: start;
}

.article-content {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.article-content h2 {
    margin-bottom: 18px;
}

.article-content h3 {
    margin: 30px 0 8px;
}

.article-content p {
    margin: 0 0 14px;
    color: #4e4652;
}

.check-list {
    padding-left: 22px;
    color: #4e4652;
}

.check-list li {
    margin: 8px 0;
}

.side-note {
    position: static;
    padding: 22px;
    border: 1px solid #e5cfe8;
    border-radius: 18px;
    background: var(--brand-soft);
}

.side-note h3 {
    margin: 0 0 10px;
}

.side-note p {
    margin: 0 0 14px;
    color: #534557;
    font-size: .92rem;
}

.side-note p:last-child {
    margin-bottom: 0;
}

.faq-section {
    padding: 54px 0 72px;
}

.faq-list {
    margin-top: 24px;
    display: grid;
    gap: 10px;
}

details {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

summary {
    padding: 17px 18px;
    font-weight: 780;
    cursor: pointer;
}

details p {
    margin: 0;
    padding: 0 18px 18px;
    color: var(--muted);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #1f1822;
    color: #f8f1fa;
}

.footer-inner {
    width: min(calc(100% - 32px), var(--max));
    margin: 0 auto;
    padding: 36px 0 26px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.footer-brand {
    color: #fff;
}

.footer-inner p {
    max-width: 480px;
    margin: 8px 0 0;
    color: #c9bdcc;
    font-size: .9rem;
}

.footer-inner nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-content: start;
}

.footer-inner nav a {
    color: #e8dde9;
    font-size: .9rem;
}

.footer-inner nav a:hover {
    color: #fff;
    text-decoration: underline;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 16px;
    text-align: center;
    color: #b8aabc;
    font-size: .82rem;
}

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1900;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    background: var(--brand-dark);
    color: #fff;
    box-shadow: 0 10px 28px rgba(65, 20, 74, .24);
}

.back-to-top:hover {
    background: var(--brand);
    transform: translateY(-2px);
}

.back-to-top:active {
    transform: translateY(0);
}

.back-to-top[hidden] {
    display: none !important;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 2000;
    transform: translate(-50%, 24px);
    opacity: 0;
    pointer-events: none;
    padding: 10px 14px;
    border-radius: 999px;
    background: #19151b;
    color: #fff;
    font-size: .88rem;
    font-weight: 750;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
    transition: opacity .18s ease, transform .18s ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Shared legal pages */
.legal-page .hero-inner {
    max-width: 900px;
}

.legal-layout {
    max-width: 920px;
    margin: 0 auto;
}

.legal-card {
    padding: clamp(22px, 4vw, 38px);
}

.legal-card h2,
.legal-card h3 {
    margin: 34px 0 12px;
}

.legal-card h2 {
    font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.legal-card h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.48rem);
}

.legal-card p,
.legal-card li {
    color: #4e4652;
}

.legal-card ul,
.legal-card ol {
    margin: 0 0 18px;
    padding-left: 22px;
}

.legal-card li {
    margin: 8px 0;
}

.legal-card a {
    color: var(--brand-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-card a:hover {
    color: var(--brand);
}

.legal-note {
    margin-bottom: 24px;
    padding: 16px 18px;
    border: 1px solid #e5cfe8;
    border-radius: 14px;
    background: var(--brand-soft);
    color: #534557;
}

@media (max-width: 800px) {
    html {
        scroll-padding-top: 142px;
    }

    .header-inner {
        min-height: 62px;
    }

    .menu-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 14px 16px 22px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-md);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 12px;
    }

    .hero-inner {
        padding: 52px 0 34px;
    }

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

    .article-layout {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    
    .ad-container {
        width: min(calc(100% - 22px), var(--max));
    }

    .hero-inner,
    .section-inner,
    .header-inner,
    .footer-inner {
     width: min(calc(100% - 22px), var(--max));
    }

    .hero-inner {
        padding-top: 42px;
    }

    .trust-row {
        justify-content: flex-start;
        text-align: left;
    }

    .article-content {
        padding: 20px;
    }

    .back-to-top {
        right: 14px;
        bottom: 14px;
        width: 44px;
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
