@font-face {
    font-family: 'Instrument Sans';
    src: url('/assets/instrument-sans.woff2') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --green-50: #f0fdf4;
    --green-100: #dcfce7;
    --green-400: #4ade80;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --green-700: #15803d;
    --black: #0a0a0a;
    --muted: #525252;
    --border: #e5e5e5;
    color-scheme: light;
}

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

html {
    background: #fff;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    color: var(--black);
    font-family:
        'Instrument Sans',
        ui-sans-serif,
        system-ui,
        -apple-system,
        'Segoe UI',
        sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    background:
        radial-gradient(
            60rem 30rem at 100% 0%,
            var(--green-50),
            transparent 70%
        ),
        radial-gradient(40rem 24rem at 0% 100%, var(--green-50), transparent),
        #fff;
}

h1,
h2,
p {
    margin: 0;
}

main {
    flex: 1;
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */

.top {
    display: flex;
    justify-content: center;
    padding: 1.5rem 1rem 0.5rem;
}

.logo {
    width: auto;
    height: 3.5rem;
}

/* Hero */

.hero {
    display: grid;
    gap: 2.5rem;
    align-items: center;
    padding: 1.5rem 0 2.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    border: 2px solid var(--black);
    border-radius: 999px;
    background: var(--green-400);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 3px 3px 0 var(--black);
}

.badge-dot {
    position: relative;
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background: var(--black);
}

.badge-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--black);
    animation: ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

h1 {
    margin-top: 1.25rem;
    font-size: clamp(2.125rem, 8.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

h1 span {
    display: block;
    color: var(--green-700);
}

.lead {
    margin-top: 1rem;
    max-width: 34rem;
    color: var(--muted);
    font-size: 1.125rem;
}

/* Progress bar */

.progress {
    margin-top: 1.75rem;
    max-width: 30rem;
}

.progress-label {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.progress-track {
    height: 0.875rem;
    padding: 2px;
    border: 2px solid var(--black);
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
}

.progress-label::after {
    content: '';
    display: inline-block;
    width: 1.25em;
    text-align: left;
    animation: dots 1.6s steps(4, end) infinite;
}

.progress-bar {
    position: relative;
    width: 86%;
    height: 100%;
    overflow: hidden;
    border-radius: 999px;
    background: repeating-linear-gradient(
        -45deg,
        var(--green-500) 0 0.5rem,
        var(--green-400) 0.5rem 1rem
    );
    background-size: 1.414rem 1.414rem;
    animation:
        load 7s cubic-bezier(0.65, 0, 0.35, 1) infinite,
        stripes 0.8s linear infinite;
}

.progress-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgb(255 255 255 / 0.7),
        transparent
    );
    transform: translateX(-100%);
    animation: shine 1.8s ease-in-out infinite;
}

/* Contact button */

.button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    margin-top: 1.75rem;
    padding: 0.9375rem 1.5rem;
    border: 2px solid var(--black);
    border-radius: 0.75rem;
    background: var(--green-700);
    color: #fff;
    font-size: 1.0625rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 4px 4px 0 var(--black);
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.button svg {
    flex: none;
    width: 1.375rem;
    height: 1.375rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.button:hover {
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 0 var(--black);
}

.button:active {
    transform: translate(3px, 3px);
    box-shadow: 1px 1px 0 var(--black);
}

.button:focus-visible,
.bottom a:focus-visible {
    outline: 3px solid var(--green-500);
    outline-offset: 3px;
}

/* Card illustration */

.visual {
    position: relative;
    width: 100%;
    max-width: 22rem;
    margin: 0 auto;
}

.card {
    display: block;
    width: 78%;
    height: auto;
    margin: 0 auto;
    overflow: visible;
    filter: drop-shadow(0 18px 24px rgb(0 0 0 / 0.14));
    animation: float 5s ease-in-out infinite;
}

.back {
    stroke: var(--black);
    stroke-width: 6;
    transform-box: view-box;
    transform-origin: 90px 300px;
}

.back-1 {
    fill: var(--green-600);
    transform: rotate(-15deg);
}

.back-2 {
    fill: var(--green-500);
    transform: rotate(-7.5deg);
}

.scan {
    animation: scan 3.2s ease-in-out infinite;
}

.seal {
    transform-box: fill-box;
    transform-origin: center;
    animation: seal 3.2s ease-in-out infinite;
}

.callout {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border: 2px solid var(--black);
    border-radius: 0.5rem;
    background: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    box-shadow: 2px 2px 0 var(--black);
}

.callout i {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--green-500);
    animation: blink 3.2s ease-in-out infinite;
}

.callout-1 {
    top: 8%;
    left: 0;
}

.callout-2 {
    top: 8%;
    right: 0;
}

.callout-2 i {
    animation-delay: 0.4s;
}

.callout-3 {
    bottom: 20%;
    left: 0;
}

.callout-3 i {
    animation-delay: 0.8s;
}

.callout-4 {
    bottom: 20%;
    right: 0;
}

.callout-4 i {
    animation-delay: 1.2s;
}

/* Steps */

.steps {
    display: grid;
    gap: 1rem;
    padding-bottom: 2.5rem;
}

.step {
    position: relative;
    padding: 1.25rem 1.25rem 1.25rem 4.25rem;
    border: 2px solid var(--black);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 4px 4px 0 var(--black);
}

.step h2 {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
}

.step p {
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.9375rem;
}

.step-number {
    position: absolute;
    top: 1.125rem;
    left: 1.125rem;
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 2px solid var(--black);
    border-radius: 0.625rem;
    background: var(--green-400);
    font-weight: 700;
}

.step-dark {
    background: var(--black);
    color: #fff;
}

.step-dark p {
    color: #d4d4d4;
}

.step-dark .step-number {
    border-color: #fff;
}

/* Footer */

.bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 1.5rem;
    padding: 1.25rem 1rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.875rem;
}

.bottom a {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}

.bottom a:hover {
    color: var(--green-700);
}

/* Larger screens */

@media (min-width: 40rem) {
    .button {
        display: inline-flex;
    }

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

    .step {
        padding: 1.5rem;
    }

    .step-number {
        position: static;
        margin-bottom: 1rem;
    }
}

@media (min-width: 64rem) {
    .top {
        justify-content: flex-start;
        max-width: 72rem;
        width: 100%;
        margin: 0 auto;
        padding: 2rem 1rem 0;
    }

    .logo {
        height: 4rem;
    }

    .hero {
        grid-template-columns: 1.15fr 1fr;
        gap: 3rem;
        padding: 3rem 0 4rem;
    }

    .visual {
        max-width: 26rem;
    }

    .callout {
        font-size: 0.9375rem;
    }

    .steps {
        padding-bottom: 4rem;
    }
}

/* Animations */

@keyframes ping {
    75%,
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

@keyframes load {
    0% {
        width: 6%;
        opacity: 1;
    }
    18% {
        width: 34%;
    }
    30% {
        width: 47%;
    }
    48% {
        width: 71%;
    }
    62% {
        width: 80%;
    }
    80% {
        width: 86%;
        opacity: 1;
    }
    94% {
        width: 86%;
        opacity: 1;
    }
    100% {
        width: 86%;
        opacity: 0;
    }
}

@keyframes shine {
    to {
        transform: translateX(100%);
    }
}

@keyframes dots {
    0% {
        content: '';
    }
    25% {
        content: '.';
    }
    50% {
        content: '..';
    }
    75% {
        content: '...';
    }
}

@keyframes stripes {
    to {
        background-position: 1.414rem 0;
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0) rotate(2deg);
    }
    50% {
        transform: translateY(-8px) rotate(3deg);
    }
}

@keyframes scan {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    8% {
        opacity: 1;
    }
    70% {
        transform: translateY(232px);
        opacity: 1;
    }
    78%,
    100% {
        transform: translateY(232px);
        opacity: 0;
    }
}

@keyframes seal {
    0%,
    66%,
    100% {
        transform: scale(1);
    }
    76% {
        transform: scale(1.18);
    }
}

@keyframes blink {
    0%,
    100% {
        background: var(--green-500);
        box-shadow: 0 0 0 0 rgb(34 197 94 / 0);
    }
    50% {
        background: var(--green-600);
        box-shadow: 0 0 0 4px rgb(34 197 94 / 0.25);
    }
}

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

    .scan {
        display: none;
    }
}
