@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('fonts/plus-jakarta-sans-latin.woff2') format('woff2');
}

:root {
    --ink: #0a1226;
    --ink-soft: #1b2745;
    --text: #1e293b;
    --muted: #475569;
    --blue: #0b63f6;
    --blue-deep: #0a3fd1;
    --cyan: #19b8ff;
    --paper: #f5f8ff;
    --white: #ffffff;
    --line: #dce5f5;
    --on-ink: #c7d2e8;
    --field-border: #7d8dae;

    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(10, 18, 38, 0.06), 0 12px 32px -12px rgba(10, 18, 38, 0.18);
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --header-h: 76px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

ul,
ol {
    list-style: none;
}

address {
    font-style: normal;
}

h1,
h2,
h3 {
    color: var(--ink);
    line-height: 1.12;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
    border-radius: 6px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 2000;
    padding: 0.75rem 1rem;
    background: var(--ink);
    color: var(--white);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.7rem;
    border: 1.5px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.button-primary {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 8px 20px -8px rgba(11, 99, 246, 0.6);
}

.button-primary:hover {
    background: var(--blue-deep);
    transform: translateY(-2px);
}

.button-primary:active {
    transform: translateY(0);
}

.button-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}

.button-ghost:hover {
    border-color: var(--ink);
}

.button-small {
    padding: 0.65rem 1.25rem;
    font-size: 0.95rem;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
    border-color: var(--line);
    box-shadow: 0 6px 24px -16px rgba(10, 18, 38, 0.25);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-h);
    gap: 1.5rem;
}

.logo img {
    height: 44px;
    width: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
}

.nav-links a {
    display: block;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.97rem;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover {
    color: var(--ink);
    background: var(--paper);
}

.nav-links a[aria-current='true'] {
    color: var(--blue-deep);
    background: #e8f0ff;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bars {
    position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: '';
    position: absolute;
    left: 0;
}

.nav-toggle-bars::before {
    top: -6px;
}

.nav-toggle-bars::after {
    top: 6px;
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bars {
    background: transparent;
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bars::before {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bars::after {
    transform: translateY(-6px) rotate(-45deg);
}

/* Hero */
.hero {
    padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem);
    background:
        radial-gradient(900px 420px at 88% -10%, rgba(25, 184, 255, 0.16), transparent 70%),
        linear-gradient(180deg, var(--paper), var(--white) 70%);
}

.hero-title {
    max-width: 16ch;
    font-size: clamp(2.5rem, 6.4vw, 5.25rem);
    font-weight: 800;
    letter-spacing: -0.035em;
}

.hero-lead {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.75rem 3rem;
    margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.hero-lead p {
    max-width: 46ch;
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
    color: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-photo {
    position: relative;
    margin-top: clamp(2rem, 5vw, 3.5rem);
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 21 / 9;
    background: var(--ink);
    box-shadow: var(--shadow);
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 60%;
}

.hero-card,
.hero-tags li {
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.hero-card {
    position: absolute;
    left: clamp(0.75rem, 2vw, 1.5rem);
    bottom: clamp(0.75rem, 2vw, 1.5rem);
    display: flex;
    flex-direction: column;
    padding: 0.85rem 1.15rem;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    line-height: 1.4;
    color: var(--muted);
}

.hero-card-title {
    font-weight: 700;
    color: var(--ink);
}

.hero-tags {
    position: absolute;
    right: clamp(0.75rem, 2vw, 1.5rem);
    bottom: clamp(0.75rem, 2vw, 1.5rem);
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    max-width: 55%;
}

.hero-tags li {
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
}

/* Hero entrance: one orchestrated moment on load */
@media (prefers-reduced-motion: no-preference) {

    .hero-title,
    .hero-lead,
    .hero-photo {
        animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }

    .hero-lead {
        animation-delay: 0.12s;
    }

    .hero-photo {
        animation-delay: 0.26s;
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Sections */
.section {
    padding: clamp(4rem, 9vw, 7.5rem) 0;
}

.section-head {
    max-width: 640px;
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-head h2,
.about h2,
.contact h2 {
    font-size: clamp(2rem, 4.2vw, 3.25rem);
    font-weight: 800;
}

.section-head p {
    margin-top: 1rem;
    color: var(--muted);
    font-size: 1.15rem;
}

/* Services */
.services {
    background: var(--white);
}

.bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.25rem;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    border-color: #b9cdf5;
    box-shadow: var(--shadow);
}

.card-web {
    grid-column: 1 / -1;
    flex-direction: row;
}

.card-data {
    grid-column: span 6;
}

.card-social {
    grid-column: span 6;
}

.card-media {
    overflow: hidden;
    background: var(--ink);
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    transition: transform 0.6s ease;
}

.card:hover .card-media img {
    transform: scale(1.03);
}

.card-web .card-media {
    flex: 0 0 52%;
    min-height: 280px;
}

.card-web .card-body {
    align-self: center;
}

.card-side .card-media {
    aspect-ratio: 5 / 2;
}

.card-body {
    padding: clamp(1.5rem, 3vw, 2.25rem);
}

.card-side .card-body {
    padding: clamp(1.5rem, 3vw, 2rem);
}

.icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 1.1rem;
    border-radius: 14px;
    background: #e8f0ff;
    color: var(--blue);
}

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

.icon-small {
    width: 40px;
    height: 40px;
    margin: 0;
    border-radius: 12px;
    flex: none;
}

.icon-small svg {
    width: 20px;
    height: 20px;
}

.card h3 {
    font-size: 1.45rem;
    margin-bottom: 0.6rem;
}

.card p {
    color: var(--muted);
    font-size: 1rem;
}

.card-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.card-list li {
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink-soft);
}

/* About */
.about {
    position: relative;
    background: var(--ink);
    color: var(--on-ink);
    isolation: isolate;
}

.about::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, var(--ink) 0%, rgba(10, 18, 38, 0.94) 55%, var(--ink) 100%),
        image-set(url('images/about-bg.webp') type('image/webp'), url('images/about-bg.jpg') type('image/jpeg')) center / cover;
    opacity: 0.6;
}

.about h2 {
    margin-bottom: 1.5rem;
    color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: start;
}

.about-photo {
    width: 100%;
    margin-top: clamp(2.5rem, 6vw, 4rem);
    border-radius: var(--radius-lg);
    aspect-ratio: 21 / 9;
    object-fit: cover;
    object-position: 50% 40%;
}

@media (max-width: 640px) {
    .about-photo {
        aspect-ratio: 4 / 3;
    }
}

.about-text {
    display: grid;
    gap: 1.25rem;
    max-width: 60ch;
    font-size: 1.1rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: clamp(3rem, 7vw, 5.5rem);
    border-top: 1px solid rgba(199, 210, 232, 0.2);
}

.stat {
    display: flex;
    flex-direction: column-reverse;
    padding: 2rem 1.5rem 0 0;
}

.stat+.stat {
    padding-left: 1.5rem;
    border-left: 1px solid rgba(199, 210, 232, 0.2);
}

.stat dd {
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--white);
    font-variant-numeric: tabular-nums;
}

.stat dt {
    margin-top: 0.6rem;
    font-size: 1rem;
}

/* Contact */
.contact {
    background: var(--paper);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: start;
}

.contact-intro p {
    margin-top: 1rem;
    max-width: 42ch;
    color: var(--muted);
    font-size: 1.15rem;
}

.contact-list {
    display: grid;
    gap: 1.1rem;
    margin-top: 2.25rem;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--ink);
    font-weight: 600;
}

.contact-list a {
    padding: 0.4rem 0;
    text-decoration: none;
    border-bottom: 1.5px solid transparent;
    transition: border-color 0.2s ease;
}

.contact-list a:hover {
    border-color: var(--blue);
}

.contact-form {
    display: grid;
    gap: 1.25rem;
    padding: clamp(1.5rem, 3.5vw, 2.5rem);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.field {
    display: grid;
    gap: 0.45rem;
}

.field label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--ink);
}

.field input,
.field textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--field-border);
    border-radius: var(--radius-sm);
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
    resize: vertical;
    min-height: 140px;
}

.field input:hover,
.field textarea:hover {
    border-color: var(--ink-soft);
}

.field input:focus-visible,
.field textarea:focus-visible {
    outline: none;
    border-color: var(--blue);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(11, 99, 246, 0.18);
}

.field [aria-invalid='true'] {
    border-color: #c62828;
}

.field-error {
    color: #b42318;
    font-size: 0.9rem;
    font-weight: 600;
}

.contact-form .button {
    justify-self: start;
}

.form-status {
    min-height: 1.5em;
    color: var(--blue-deep);
    font-weight: 600;
}

/* Footer */
.site-footer {
    background: var(--ink);
    color: var(--on-ink);
    border-top: 1px solid rgba(199, 210, 232, 0.15);
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 960px) {
    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem var(--gutter) 1.5rem;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 18px 30px -18px rgba(10, 18, 38, 0.3);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
    }

    .site-nav.is-open {
        visibility: visible;
        opacity: 1;
        transform: none;
        transition-delay: 0s;
    }

    .nav-links {
        flex-direction: column;
    }

    .nav-links a {
        padding: 0.8rem 1rem;
        font-size: 1.05rem;
    }

    .site-nav .button {
        width: 100%;
    }

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

    .card-web,
    .card-data,
    .card-social {
        grid-column: auto;
        grid-row: auto;
    }

    .card-web {
        flex-direction: column;
    }

    .card-web .card-media {
        flex: none;
        min-height: 0;
        aspect-ratio: 5 / 2;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 1rem;
    }

    .logo img {
        height: 38px;
    }

    .hero-photo {
        aspect-ratio: 4 / 5;
    }

    .hero-photo img {
        object-position: 62% 50%;
    }

    .hero-tags {
        display: none;
    }

    .hero-actions,
    .hero-actions .button {
        width: 100%;
    }

    .card-side {
        flex-direction: column;
    }

    .card-side .card-media {
        flex: none;
        aspect-ratio: 16 / 8;
    }

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

    .stat,
    .stat+.stat {
        padding: 1.5rem 0;
        border-left: 0;
    }

    .stat+.stat {
        border-top: 1px solid rgba(199, 210, 232, 0.2);
    }

    .contact-form .button {
        justify-self: stretch;
    }
}

/* Language switch */
.lang-switch {
    padding: 0.6rem 0.85rem;
    line-height: 1.2;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.lang-switch:hover {
    border-color: var(--ink);
}

/* Hero facts */
.facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 2.5rem;
    margin-top: clamp(1.75rem, 4vw, 2.75rem);
}

.facts li {
    padding-left: 1rem;
    border-left: 3px solid var(--blue);
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.5;
}

.facts strong {
    display: block;
    color: var(--ink);
    font-size: 1.05rem;
}

/* Technologies */
.tech {
    margin-top: clamp(2.5rem, 6vw, 4rem);
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.tech h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.chips li {
    padding: 0.45rem 1rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink-soft);
}

/* Process */
.process {
    background: var(--paper);
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    counter-reset: step;
}

.steps li {
    position: relative;
    padding: 1.75rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    counter-increment: step;
}

.steps li::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-bottom: 1.1rem;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    font-weight: 800;
    font-size: 0.95rem;
}

.steps h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.steps p {
    color: var(--muted);
    font-size: 0.98rem;
}

/* About values */
.values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 2rem;
}

.values h3 {
    margin-bottom: 0.35rem;
    color: var(--white);
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.values p {
    font-size: 0.98rem;
}

/* FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}

.faq .section-head {
    margin-bottom: 0;
    position: sticky;
    top: calc(var(--header-h) + 24px);
}

.faq .section-head a,
.form-note a,
.field-check a {
    color: var(--blue-deep);
    text-underline-offset: 3px;
}

.faq-list {
    border-top: 1px solid var(--line);
}

.faq-list details {
    border-bottom: 1px solid var(--line);
}

.faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem 0;
    color: var(--ink);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

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

.faq-list summary::after {
    content: '';
    flex: none;
    width: 12px;
    height: 12px;
    border-right: 2.5px solid var(--blue);
    border-bottom: 2.5px solid var(--blue);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
    transform: rotate(-135deg);
}

.faq-list details p {
    padding: 0 2.5rem 1.4rem 0;
    color: var(--muted);
}

/* Form extras */
.field-check {
    grid-template-columns: auto 1fr;
    align-items: start;
    column-gap: 0.75rem;
}

.field-check input {
    width: 24px;
    height: 24px;
    margin-top: 0.2rem;
    accent-color: var(--blue);
}

.field-check label {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--muted);
}

.field-check .field-error {
    grid-column: 2;
}

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

/* Footer */
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 2.5rem;
    padding-top: clamp(2.5rem, 6vw, 4rem);
    padding-bottom: 2.5rem;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 1.1rem;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    max-width: 38ch;
}

.site-footer h2 {
    margin-bottom: 0.9rem;
    color: var(--white);
    font-size: 1rem;
    letter-spacing: 0;
}

.site-footer li+li {
    margin-top: 0.1rem;
}

.site-footer li a {
    display: inline-block;
    padding: 0.45rem 0;
}

.site-footer a {
    text-underline-offset: 3px;
}

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

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 2rem;
    padding-top: 1.5rem;
    padding-bottom: 1.75rem;
    border-top: 1px solid rgba(199, 210, 232, 0.15);
}

.footer-bottom ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

.footer-bottom li+li {
    margin-top: 0;
}

.footer-bottom a {
    padding: 0.6rem 0;
}

/* Legal pages */
.legal {
    padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6rem);
}

.legal .container {
    max-width: 820px;
}

.legal h1 {
    margin-bottom: 0.75rem;
    font-size: clamp(2.2rem, 5vw, 3.25rem);
    font-weight: 800;
}

.legal .legal-lead {
    margin-bottom: 2.5rem;
    color: var(--muted);
}

.legal h2 {
    margin: 2.5rem 0 0.75rem;
    font-size: 1.45rem;
}

.legal h3 {
    margin: 1.5rem 0 0.5rem;
    font-size: 1.1rem;
}

.legal p,
.legal ul {
    margin-bottom: 1rem;
}

.legal ul {
    padding-left: 1.25rem;
    list-style: disc;
}

.legal li+li {
    margin-top: 0.35rem;
}

.legal a {
    color: var(--blue-deep);
    text-underline-offset: 3px;
}

.legal-note {
    margin-bottom: 2rem;
    padding: 1rem 1.25rem;
    border: 1px solid #f2c200;
    border-radius: var(--radius-sm);
    background: #fff8db;
    color: #5c4700;
    font-size: 0.95rem;
}

mark.todo {
    padding: 0.05em 0.3em;
    border-radius: 4px;
    background: #ffe27a;
    color: #4a3b00;
}

/* Mobile call-to-action bar */
.sticky-cta {
    display: none;
}

/* Testimonials (enable the commented block in index.html) */
.quotes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.quotes figure {
    padding: 1.75rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.quotes blockquote {
    margin-bottom: 1.25rem;
    color: var(--ink);
    font-size: 1.05rem;
}

.quotes figcaption {
    color: var(--muted);
    font-size: 0.95rem;
}

.quotes figcaption strong {
    display: block;
    color: var(--ink);
}

/* 404 */
.notfound {
    padding: clamp(3rem, 9vw, 7rem) 0;
    min-height: 70vh;
}

.notfound-code {
    margin-bottom: 1.5rem;
    color: var(--blue);
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
}

.notfound-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
}

.notfound h1 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.6rem, 3.5vw, 2.25rem);
}

.notfound p:not(.notfound-code) {
    margin-bottom: 1.5rem;
    color: var(--muted);
}

@media (max-width: 960px) {

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

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

    .faq .section-head {
        position: static;
        margin-bottom: 1rem;
    }

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

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

    .footer-brand {
        grid-column: 1 / -1;
    }

    .lang-switch {
        align-self: flex-start;
        margin-left: 1rem;
    }
}

@media (max-width: 960px) {

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

    .sticky-cta {
        position: fixed;
        left: var(--gutter);
        right: var(--gutter);
        bottom: max(1rem, env(safe-area-inset-bottom));
        z-index: 900;
        display: flex;
        box-shadow: 0 12px 28px -10px rgba(10, 18, 38, 0.55);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
    }

    .sticky-cta.is-hidden {
        opacity: 0;
        transform: translateY(12px);
        visibility: hidden;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
    }

    .site-footer {
        padding-bottom: 4.5rem;
    }
}

@media (max-width: 640px) {

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

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

    .faq-list details p {
        padding-right: 0;
    }
}

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

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
