:root {
    --ink: #10172d;
    --muted: #596176;
    --line: #dfe3ec;
    --bg: #f6f7fb;
    --brand: #6258ee;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

a:focus-visible,
button:focus-visible {
    outline: 3px solid #8b85ff;
    outline-offset: 3px;
}

.shell {
    max-width: 1160px;
    margin: auto;
    padding: 0 24px;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 5;
    border-bottom: 1px solid var(--line);
    background: #f6f7fbe8;
    backdrop-filter: blur(16px);
}

.nav-in {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 800;
}

.brand img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.links {
    display: flex;
    gap: 24px;
    color: #424b61;
    font-size: 14px;
    font-weight: 700;
}

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

.btn,
a.cta,
.purchase-actions .cta {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: var(--brand);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 22px #6258ee38;
}

.btn:hover,
a.cta:hover {
    background: #453cc8;
}

.btn.alt {
    background: #fff;
    color: var(--ink);
    border-color: var(--line);
    box-shadow: none;
}

#app-container > main,
body > main {
    width: min(820px, calc(100% - 48px));
    margin: 0 auto;
    padding: 56px 0 80px;
}

main h1,
.legal-title {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.055em;
    font-weight: 800;
}

main h2,
.legal-card h2 {
    margin: 32px 0 8px;
    color: var(--ink);
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

main h3 {
    margin: 0;
    font-size: 17px;
}

main p,
.legal-card p,
.legal-card li,
.legal-meta {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

main a,
.legal-card a {
    color: var(--brand);
    font-weight: 700;
}

.legal-kicker {
    display: inline-block;
    margin-bottom: 14px;
    border: 1px solid #d9d6ff;
    border-radius: 99px;
    padding: 6px 10px;
    background: #f2f1ff;
    color: #4d45bc;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.legal-card,
.legal-container {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: inherit;
    padding: 0;
}

.legal-card ul,
.info-list,
#changelog-list ul {
    margin: 8px 0 0;
    padding-left: 1.1rem;
}

.text-center {
    text-align: center;
    margin-bottom: 28px;
}

.macos-card,
.card,
.purchase-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--ink);
    box-shadow: none;
}

.card {
    padding: 8px 28px 12px;
}

.macos-card {
    margin: 10px 0;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
}

.faq-question:hover {
    background: #f4f3ff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.faq-answer > div {
    padding: 0 20px 18px;
    color: var(--muted);
}

.arrow-icon {
    width: 18px;
    height: 18px;
    flex: none;
    color: var(--brand);
    transition: transform 0.2s ease;
}

.rotate-180 {
    transform: rotate(180deg);
}

#changelog-list article {
    display: flex;
    gap: 16px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.timeline-dot {
    width: 10px;
    height: 10px;
    margin-top: 8px;
    border-radius: 99px;
    background: var(--brand);
}

main span.inline-flex {
    display: inline-flex;
    margin: 8px 8px 0 0;
    padding: 6px 10px;
    border: 1px solid #d9d6ff;
    border-radius: 99px;
    background: #f2f1ff;
    color: #4d45bc;
    font-size: 12px;
    font-weight: 800;
}

.licensing-shell {
    max-width: 720px;
}

.section-header {
    text-align: center;
    margin-bottom: 28px;
}

.purchase-card {
    padding: 24px;
    margin-bottom: 16px;
}

.purchase-card.info {
    background: #fff;
}

.license-box {
    margin-top: 16px;
    padding: 16px;
    border: 1px dashed var(--line);
    border-radius: 12px;
    background: var(--bg);
}

.license-key {
    margin: 8px 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--brand);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: center;
    user-select: all;
    cursor: pointer;
}

.copy-toast {
    position: absolute;
    right: 16px;
    top: 16px;
    opacity: 0;
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
}

.copy-toast.visible {
    opacity: 1;
}

.purchase-actions {
    margin-top: 16px;
}

.pill,
.pill-muted {
    display: inline-block;
    margin: 0 0 8px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hidden,
.orb,
.noise {
    display: none;
}

.closing {
    text-align: center;
    background: linear-gradient(135deg, #e9e7ff, #def9f1);
    padding: 72px 0;
}

.closing h2 {
    margin: 0 0 12px;
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: -0.05em;
}

.closing p {
    max-width: 600px;
    margin: 0 auto 24px;
    color: #50596d;
}

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

.fine {
    margin-top: 16px;
    color: #697188;
    font-size: 14px;
}

footer {
    padding: 36px 0;
    background: #10172d;
    color: #b9c0d0;
    font-size: 14px;
}

.foot {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

footer nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

footer a {
    color: #b9c0d0;
    font-weight: 500;
}

footer a:hover {
    color: #fff;
}

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

    .foot {
        flex-direction: column;
    }
}
