@font-face {
    font-family: Inter;
    src: url('/assets/fonts/InterVariable.woff2') format('woff2');
    font-display: swap;
    font-style: normal;
    font-weight: 100 900;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('/assets/fonts/SpaceGrotesk-Medium.woff2') format('woff2');
    font-display: swap;
    font-style: normal;
    font-weight: 500;
}

:root {
    --blue: #393187;
    --blue-dark: #282064;
    --orange: #f8aa48;
    --ink: #222438;
    --muted: #656779;
    --line: #d9dbea;
    --panel: #ffffff;
    --soft: #f3f3f9;
    --soft-blue: #eceafa;
    --soft-orange: #fff4e4;
    --danger: #a52b3a;
    --danger-soft: #fff0f2;
    --success: #2d7a58;
    --shadow: 0 1.5rem 4rem rgba(31, 27, 79, 0.12);
    color-scheme: light;
}

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

html {
    min-width: 20rem;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #f7f7fb;
    color: var(--ink);
    font-family: Inter, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
label,
select {
    -webkit-tap-highlight-color: transparent;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 20;
    padding: 0.75rem 1rem;
    background: var(--blue-dark);
    color: #fff;
    border-radius: 0.45rem;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: none;
}

:focus-visible {
    outline: 0.2rem solid var(--orange);
    outline-offset: 0.18rem;
}

.audit-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 92% 7%, rgba(248, 170, 72, 0.22), transparent 24rem),
        radial-gradient(circle at 6% 34%, rgba(57, 49, 135, 0.11), transparent 28rem),
        linear-gradient(180deg, #fbfbfe 0%, #f4f4fa 100%);
}

.audit-shell {
    width: min(100% - 2rem, 70rem);
    margin-inline: auto;
}

.audit-header {
    border-bottom: 1px solid rgba(57, 49, 135, 0.12);
    background: rgba(255, 255, 255, 0.91);
    backdrop-filter: blur(0.8rem);
}

.audit-header__inner {
    min-height: 5.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.audit-logo {
    width: min(15rem, 63vw);
    height: auto;
    display: block;
}

.audit-logo-link {
    display: inline-block;
    border-radius: 0.35rem;
}

.audit-logo-link:focus-visible {
    outline: 0.18rem solid var(--orange);
    outline-offset: 0.3rem;
}

.audit-language {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    min-height: 2.25rem;
    border: 1px solid var(--line);
    border-radius: 99rem;
    background: var(--soft);
    color: var(--blue-dark);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.audit-main {
    padding: clamp(2.5rem, 6vw, 5.5rem) 0;
}

.audit-intro {
    max-width: 53rem;
    margin-bottom: 2rem;
}

.audit-eyebrow {
    margin: 0 0 0.55rem;
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: 'Space Grotesk', Inter, sans-serif;
    color: var(--blue-dark);
    line-height: 1.13;
}

h1 {
    margin-bottom: 1rem;
    font-size: clamp(2.25rem, 7vw, 4.7rem);
    letter-spacing: -0.045em;
}

h2 {
    margin-bottom: 0.65rem;
    font-size: clamp(1.65rem, 4vw, 2.45rem);
    letter-spacing: -0.025em;
}

h3 {
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
}

.audit-intro > p:last-child,
.audit-card__heading p,
.language-card > p,
.audit-success > p {
    color: var(--muted);
    font-size: 1.06rem;
}

.language-card,
.audit-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(57, 49, 135, 0.13);
    border-radius: 1.35rem;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.language-card {
    min-height: 34rem;
    padding: clamp(2rem, 7vw, 5.25rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.language-card::after {
    content: '';
    position: absolute;
    right: -8rem;
    bottom: -13rem;
    width: 31rem;
    height: 31rem;
    border-radius: 50%;
    border: 5.8rem solid rgba(57, 49, 135, 0.045);
    pointer-events: none;
}

.language-card__accent {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0.6rem;
    background: linear-gradient(var(--orange), var(--blue));
}

.language-card h1 {
    max-width: 51rem;
}

.language-card h1 span {
    display: block;
}

.language-card h1 span:last-child {
    color: var(--blue);
}

.language-actions {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.language-actions button {
    min-height: 7.5rem;
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.25rem;
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    text-align: left;
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.language-actions button strong {
    color: var(--blue-dark);
    font-family: 'Space Grotesk', Inter, sans-serif;
    font-size: 1.35rem;
}

.language-actions button span {
    color: var(--muted);
}

.language-actions button:hover {
    border-color: var(--blue);
    transform: translateY(-0.15rem);
    box-shadow: 0 0.8rem 2rem rgba(57, 49, 135, 0.12);
}

.audit-progress {
    margin: 0 0 1.25rem;
}

.audit-progress__meta {
    margin-bottom: 0.55rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.audit-progress__meta strong {
    color: var(--blue-dark);
}

.audit-progress__track {
    height: 0.55rem;
    overflow: hidden;
    border-radius: 99rem;
    background: #e5e5f0;
}

.audit-progress__track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blue), #6258bb);
    transition: width 220ms ease;
}

.progress-17 { width: 17%; }
.progress-20 { width: 20%; }
.progress-33 { width: 33%; }
.progress-40 { width: 40%; }
.progress-50 { width: 50%; }
.progress-60 { width: 60%; }
.progress-67 { width: 67%; }
.progress-80 { width: 80%; }
.progress-83 { width: 83%; }
.progress-100 { width: 100%; }

.audit-card {
    padding: clamp(1.35rem, 5vw, 3.5rem);
}

.audit-card__heading {
    display: grid;
    grid-template-columns: 3.4rem minmax(0, 1fr);
    gap: 1.2rem;
    padding-bottom: 1.6rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
}

.audit-section-number {
    width: 3.4rem;
    height: 3.4rem;
    margin: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--orange);
    color: var(--blue-dark);
    font-family: 'Space Grotesk', Inter, sans-serif;
    font-weight: 700;
}

.audit-required-note {
    color: var(--muted);
    font-size: 0.9rem;
}

.audit-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.5rem;
}

.audit-field {
    min-width: 0;
}

.audit-field--textarea,
.audit-field--radio,
.audit-field--checkboxes,
.audit-field[data-condition] {
    grid-column: 1 / -1;
}

.audit-field label:not(.audit-option),
.audit-field legend {
    display: block;
    margin-bottom: 0.42rem;
    color: var(--ink);
    font-weight: 750;
    line-height: 1.4;
}

.audit-field legend span,
.audit-field > label > span:not(.audit-field__optional) {
    color: var(--danger);
}

.audit-field__optional,
.audit-field__hint {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 450;
}

.audit-field__hint {
    margin: -0.1rem 0 0.6rem;
}

.audit-field fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

input[type='text'],
input[type='email'],
select,
textarea {
    width: 100%;
    border: 1px solid #bfc1d2;
    border-radius: 0.6rem;
    background: #fff;
    color: var(--ink);
    padding: 0.82rem 0.9rem;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

textarea {
    min-height: 7rem;
    resize: vertical;
}

select {
    min-height: 3.15rem;
}

input[type='text']:focus,
input[type='email']:focus,
select:focus,
textarea:focus {
    border-color: var(--blue);
    outline: 0;
    box-shadow: 0 0 0 0.22rem rgba(57, 49, 135, 0.13);
}

[aria-invalid='true'] {
    border-color: var(--danger) !important;
}

.audit-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.audit-option,
.audit-consent {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    border: 1px solid var(--line);
    border-radius: 0.7rem;
    background: #fff;
    cursor: pointer;
}

.audit-option {
    min-height: 3.3rem;
    padding: 0.8rem;
}

.audit-option:has(input:checked) {
    border-color: var(--blue);
    background: var(--soft-blue);
    box-shadow: inset 0 0 0 1px var(--blue);
}

.audit-option input,
.audit-consent input {
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 auto;
    margin: 0.18rem 0 0;
    accent-color: var(--blue);
}

.audit-option span {
    color: var(--ink);
    font-size: 0.93rem;
    font-weight: 600;
    line-height: 1.35;
}

.audit-consent {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--soft);
    font-weight: 650;
}

.audit-field__error {
    margin: 0.45rem 0 0;
    color: var(--danger);
    font-size: 0.88rem;
    font-weight: 700;
}

.has-error .audit-options,
.has-error input,
.has-error select,
.has-error textarea {
    border-color: var(--danger);
}

.privacy-document {
    max-height: 33rem;
    overflow-y: auto;
    padding: 0.35rem 1rem 0.35rem 0;
    scrollbar-color: var(--blue) #ececf3;
}

.privacy-document section {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}

.privacy-document section:last-child {
    border-bottom: 0;
}

.privacy-document p {
    margin-bottom: 0;
    color: #4d5063;
}

.audit-notice {
    margin: 1rem 0;
    padding: 1rem 1.1rem;
    border-left: 0.3rem solid var(--blue);
    border-radius: 0.35rem 0.65rem 0.65rem 0.35rem;
    background: var(--soft-blue);
}

.audit-notice--important {
    border-left-color: var(--orange);
    background: var(--soft-orange);
    color: var(--blue-dark);
}

.audit-notice--error {
    border-left-color: var(--danger);
    background: var(--danger-soft);
    color: var(--danger);
    font-weight: 650;
}

.audit-turnstile {
    width: 100%;
    margin: 1.25rem 0;
}

.audit-turnstile .cf-turnstile {
    width: 100%;
}

.audit-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.audit-actions--end {
    justify-content: flex-end;
}

.audit-button {
    min-height: 3.2rem;
    padding: 0.72rem 1.4rem;
    border: 1px solid transparent;
    border-radius: 0.55rem;
    cursor: pointer;
    font-weight: 800;
    transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.audit-button:hover {
    transform: translateY(-0.1rem);
}

.audit-button--primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 0.65rem 1.4rem rgba(57, 49, 135, 0.18);
}

.audit-button--primary:hover {
    background: var(--blue-dark);
}

.audit-button--secondary {
    border-color: #c7c8d7;
    background: #fff;
    color: var(--blue-dark);
}

.audit-button--secondary:hover {
    border-color: var(--blue);
}

.audit-summary {
    margin-top: 1.75rem;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    background: var(--soft);
}

.audit-summary dl {
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0 0;
}

.audit-summary dl div {
    display: grid;
    grid-template-columns: minmax(9rem, 0.32fr) 1fr;
    gap: 1rem;
}

.audit-summary dt {
    color: var(--muted);
    font-weight: 700;
}

.audit-summary dd {
    margin: 0;
    color: var(--ink);
    font-weight: 650;
}

.audit-success {
    min-height: 31rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.audit-success__mark {
    width: 4rem;
    height: 4rem;
    margin-bottom: 1.5rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--success);
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
}

.audit-copy-status {
    padding: 0.75rem 1rem;
    border-radius: 0.55rem;
    background: var(--soft-blue);
}

.audit-footer {
    padding: 1.3rem 0;
    border-top: 1px solid rgba(57, 49, 135, 0.12);
    color: var(--muted);
    font-size: 0.82rem;
}

.audit-footer .audit-shell {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.audit-footer a {
    color: inherit;
    font-weight: 650;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

.audit-footer a:hover,
.audit-footer a:focus-visible {
    color: var(--blue);
}

.audit-reset-form {
    margin: 0;
}

.audit-reset-link {
    appearance: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-weight: 650;
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

.audit-reset-link:hover,
.audit-reset-link:focus-visible {
    color: var(--blue);
}

[data-condition][hidden] {
    display: none;
}

@media (max-width: 47rem) {
    .audit-shell {
        width: min(100% - 1.2rem, 70rem);
    }

    .audit-header__inner {
        min-height: 4.6rem;
    }

    .audit-main {
        padding: 2rem 0 3rem;
    }

    .language-card,
    .audit-card {
        border-radius: 0.9rem;
    }

    .language-card {
        min-height: 31rem;
        padding: 2rem 1.35rem;
    }

    .language-actions,
    .audit-fields,
    .audit-options {
        grid-template-columns: 1fr;
    }

    .language-actions button {
        min-height: 6rem;
    }

    .audit-card__heading {
        grid-template-columns: 2.8rem minmax(0, 1fr);
        gap: 0.8rem;
    }

    .audit-section-number {
        width: 2.8rem;
        height: 2.8rem;
        font-size: 0.86rem;
    }

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

    .audit-button {
        width: 100%;
    }

    .audit-summary dl div {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }

    .audit-footer .audit-shell {
        flex-direction: column;
        gap: 0.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
