@font-face {
    font-family: "QR Studio Sans";
    src: url("/fonts/inter/InterVariable.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 100 900;
}

@font-face {
    font-family: "QR Studio Sans";
    src: url("/fonts/inter/InterVariable-Italic.woff2") format("woff2");
    font-display: swap;
    font-style: italic;
    font-weight: 100 900;
}

:root {
    --bg: #fafafa;
    --surface: #ffffff;
    --surface-soft: #f5f6f7;
    --text: #111113;
    --muted: #646970;
    --line: #e6e7eb;
    --accent: #007aff;
    --accent-hover: #006ee6;
    --accent-soft: #eaf4ff;
    --danger: #b42318;
    --success: #177245;
    --radius: 8px;
    --max: 1160px;
    --font-sans: "QR Studio Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    font-optical-sizing: auto;
    font-size: 16px;
    font-synthesis-weight: none;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
}

[hidden] {
    display: none !important;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(0, 122, 255, 0.22);
    outline-offset: 3px;
}

.site-nav,
.site-footer,
main {
    width: min(100%, var(--max));
    margin: 0 auto;
    padding-inline: 24px;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 19px;
    font-weight: 680;
    letter-spacing: 0;
}

.brand::before {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background:
        linear-gradient(90deg, #111113 42%, transparent 0) 5px 5px / 9px 9px,
        linear-gradient(90deg, #111113 42%, transparent 0) 16px 5px / 9px 9px,
        linear-gradient(90deg, #111113 42%, transparent 0) 5px 16px / 9px 9px,
        linear-gradient(90deg, var(--accent) 42%, transparent 0) 16px 16px / 9px 9px,
        #ffffff;
    box-shadow: inset 0 0 0 1px #cfd4dc;
    content: "";
}

.site-nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px 18px;
}

.site-nav-links a {
    color: #3f444b;
    font-size: 14px;
    font-weight: 520;
}

.site-nav-links a:hover,
.text-link:hover {
    color: var(--accent);
}

.site-nav-links .nav-cta {
    color: #ffffff;
}

.nav-cta,
.primary-link,
.secondary-link,
.secondary-button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 520;
    line-height: 1.1;
    white-space: nowrap;
}

.nav-cta,
.primary-link,
button {
    background: var(--accent);
    color: #ffffff;
}

.nav-cta:hover,
.primary-link:hover,
button:hover {
    background: var(--accent-hover);
}

.secondary-link,
.secondary-button {
    border-color: var(--line);
    background: transparent;
    color: var(--text);
}

.secondary-link:hover,
.secondary-button:hover {
    border-color: #cdd1d7;
    background: #ffffff;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

main {
    padding-block: 28px 64px;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--text);
    letter-spacing: 0;
}

h1 {
    font-size: clamp(44px, 8vw, 88px);
    line-height: 0.96;
    font-weight: 560;
}

h2 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.04;
    font-weight: 520;
}

h3 {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 500;
}

p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d7dbe2;
    border-radius: var(--radius);
    background: #ffffff;
    color: var(--text);
    font: inherit;
    font-size: 15px;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(0, 122, 255, 0.56);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12);
}

.hero-actions,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 24px;
    padding: 42px 0 24px;
}

.page-hero h1 {
    font-size: clamp(40px, 6vw, 64px);
}

.page-hero p {
    max-width: 720px;
    margin-top: 14px;
    font-size: 18px;
}

.page-section,
.auth-panel,
.legal-page {
    display: grid;
    gap: 18px;
    background: #ffffff;
}

.page-section,
.legal-page {
    padding-block: 28px;
    border-top: 1px solid var(--line);
}

.auth-panel {
    max-width: 420px;
    margin: 54px auto;
    padding: 28px 0;
}

.auth-panel h1 {
    font-size: clamp(36px, 5vw, 48px);
}

.auth-panel form {
    display: grid;
    gap: 12px;
}

.resource-grid,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 48px;
    margin-top: 20px;
    border-top: 1px solid var(--line);
}

.resource-grid article,
.contact-grid article {
    display: grid;
    gap: 10px;
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
}

.resource-grid p,
.contact-grid p,
.page-section p {
    font-size: 15px;
}

.support-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    align-items: start;
    gap: 28px;
}

.support-card {
    display: grid;
    gap: 14px;
    padding: 26px;
    border-radius: 15px;
    background: var(--surface);
}

.support-card h2,
.support-language-panel h2 {
    font-size: clamp(24px, 3vw, 34px);
}

.support-form {
    gap: 16px;
}

.support-form label {
    display: grid;
    gap: 8px;
    color: #30343a;
    font-size: 14px;
    font-weight: 520;
}

.support-form textarea {
    min-height: 160px;
}

.support-meta,
.support-language-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.support-meta {
    padding-top: 4px;
}

.support-language-panel {
    margin-top: 28px;
}

.support-language-list a {
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 13px;
    font-weight: 520;
}

.support-language-list a[aria-current="page"] {
    background: var(--text);
    color: #ffffff;
}

.feature-icon {
    color: var(--accent);
    font-size: 13px;
    font-weight: 560;
}

.check-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: #30343a;
    font-weight: 440;
    line-height: 1.5;
}

.check-list li::before {
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    margin-top: 9px;
    border-radius: 50%;
    background: var(--success);
    content: "";
}

.limit-panel {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
}

.limit-panel div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.limit-panel span {
    color: var(--muted);
    font-weight: 500;
}

.cta-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    margin-top: 42px;
    padding: 28px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.legal-page {
    max-width: 850px;
    margin: 20px 0 0;
}

.legal-page h1 {
    font-size: clamp(38px, 5vw, 56px);
}

.legal-page section {
    display: grid;
    gap: 8px;
}

.legal-page h2 {
    font-size: 22px;
}

.legal-updated {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.text-link {
    color: var(--accent);
    font-weight: 560;
}

.form-message {
    min-height: 20px;
    margin: 0;
    color: var(--danger);
    font-size: 14px;
    font-weight: 520;
}

.form-message.is-success {
    color: var(--success);
}

.site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 24px;
    padding-block: 28px;
    border-top: 1px solid var(--line);
}

.site-footer div,
.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.site-footer div {
    flex-direction: column;
}

.site-footer span,
.site-footer a {
    color: var(--muted);
    font-size: 14px;
}

.site-footer strong {
    color: var(--text);
}

@media (max-width: 900px) {
    .page-hero,
    .cta-band,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .resource-grid,
    .contact-grid,
    .support-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .support-layout {
        gap: 18px;
    }
}

@media (max-width: 680px) {
    .site-nav {
        align-items: flex-start;
        flex-direction: column;
        padding-block: 18px;
    }

    .site-nav-links {
        justify-content: flex-start;
        width: 100%;
    }

    main,
    .site-nav,
    .site-footer {
        padding-inline: 18px;
    }

    main {
        padding-block: 12px 44px;
    }

    .hero-actions,
    .hero-actions a,
    .cta-band a,
    .page-hero a,
    .auth-panel button,
    .auth-panel .secondary-button {
        width: 100%;
    }

    .auth-panel {
        margin-block: 28px;
    }

    .support-card {
        padding: 22px;
    }

    .support-language-list a {
        flex: 1 1 calc(50% - 8px);
        text-align: center;
    }
}
