:root {
    color-scheme: light;
    --navy: #0f205f;
    --blue: #17388f;
    --blue-bright: #2451d3;
    --red: #e8293e;
    --red-dark: #c91d31;
    --pink: #f4b7c2;
    --cream: #fff8eb;
    --paper: #fffdf8;
    --surface: #ffffff;
    --ink: #11142d;
    --muted: #5c6075;
    --line: rgba(15, 32, 95, .2);
    --danger-soft: #fff0f2;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 280px;
    background: var(--paper);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    color: var(--ink);
    background:
        radial-gradient(circle at 5% 10%, rgba(244, 183, 194, .35), transparent 22rem),
        radial-gradient(circle at 96% 36%, rgba(36, 81, 211, .1), transparent 24rem),
        linear-gradient(rgba(15, 32, 95, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 32, 95, .03) 1px, transparent 1px),
        var(--paper);
    background-size: auto, auto, 28px 28px, 28px 28px, auto;
    font-family: "Avenir Next", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-rendering: optimizeLegibility;
}

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

button,
input {
    font: inherit;
}

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

::selection {
    color: #fff;
    background: var(--blue);
}

.promo-strip {
    overflow: hidden;
    color: #fff;
    background: var(--red);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .1em;
    white-space: nowrap;
}

.promo-strip > div {
    display: flex;
    width: max-content;
    min-width: 100%;
    align-items: center;
    justify-content: space-around;
    gap: 18px;
    padding: 9px 14px;
}

.promo-strip i {
    color: var(--pink);
    font-size: 13px;
    font-style: normal;
}

.site-header,
.page-shell,
footer {
    width: min(1120px, calc(100% - 28px));
    margin-inline: auto;
}

.site-header {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.brand {
    color: var(--navy);
    font-family: "Arial Rounded MT Bold", "Avenir Next", sans-serif;
    font-size: 21px;
    font-weight: 950;
    letter-spacing: -.07em;
}

.brand span {
    color: var(--red);
}

.safe-status {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--navy);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.safe-status > span {
    display: grid;
    width: 21px;
    height: 21px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--blue);
    font-size: 10px;
}

.page-shell {
    padding-block: 24px 46px;
}

.checkout-steps {
    display: grid;
    width: min(100%, 440px);
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    margin: 0 auto 24px;
}

.checkout-steps > i {
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        var(--pink) 0,
        var(--pink) 7px,
        transparent 7px,
        transparent 12px
    );
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
}

.step > span {
    display: grid;
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    place-items: center;
    border: 2px solid var(--line);
    border-radius: 10px;
    background: #fff;
    font-size: 11px;
    font-weight: 950;
}

.step p {
    margin: 0;
    font-size: 12px;
    font-weight: 900;
}

.step small {
    display: none;
}

.step.is-active {
    color: var(--navy);
}

.step.is-active > span {
    border-color: var(--navy);
    color: #fff;
    background: var(--red);
    box-shadow: 3px 3px 0 var(--navy);
    transform: rotate(-3deg);
}

.checkout-layout {
    display: grid;
    gap: 20px;
}

.form-card,
.order-card {
    border: 2px solid var(--navy);
    border-radius: 20px;
    background: var(--surface);
}

.form-card {
    padding: 24px 18px;
    box-shadow: 7px 7px 0 var(--navy);
}

.section-kicker,
.order-label {
    color: var(--red);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .11em;
}

.form-card h1 {
    max-width: 620px;
    margin: 10px 0 9px;
    color: var(--navy);
    font-family: "Arial Rounded MT Bold", "Arial Black", "Avenir Next", sans-serif;
    font-size: clamp(30px, 10vw, 45px);
    font-weight: 950;
    letter-spacing: -.055em;
    line-height: .98;
}

.form-intro {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.form-alert {
    display: grid;
    gap: 3px;
    margin-top: 18px;
    padding: 13px 14px;
    border: 1px solid var(--red);
    border-radius: 12px;
    color: var(--red-dark);
    background: var(--danger-soft);
    font-size: 12px;
    line-height: 1.4;
}

form {
    margin-top: 28px;
}

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

legend {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 17px;
    padding: 0;
    color: var(--navy);
    font-size: 15px;
    font-weight: 950;
}

legend > span {
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    border: 2px solid var(--navy);
    border-radius: 50%;
    color: var(--red);
    background: var(--cream);
    font-size: 9px;
    letter-spacing: .04em;
}

.field-grid,
.address-grid {
    display: grid;
    gap: 15px;
}

.field {
    display: grid;
    min-width: 0;
    gap: 7px;
}

.field > span {
    color: var(--navy);
    font-size: 11px;
    font-weight: 850;
}

.field > span em {
    color: var(--muted);
    font-size: 9px;
    font-style: normal;
    font-weight: 700;
    text-transform: uppercase;
}

.field input {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 0 14px;
    border: 2px solid var(--line);
    border-radius: 12px;
    outline: 0;
    color: var(--ink);
    background: #fff;
    font-size: 15px;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.field input::placeholder {
    color: #9a9daf;
}

.field input:hover {
    border-color: rgba(15, 32, 95, .42);
}

.field input:focus {
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(244, 183, 194, .46);
}

.field input[aria-invalid="true"] {
    border-color: var(--red);
    background: var(--danger-soft);
}

.field small {
    color: var(--red-dark);
    font-size: 10px;
    font-weight: 750;
}

.field-feedback:empty {
    display: none;
}

.field-feedback.is-success {
    color: #168257;
}

.field-feedback.is-loading,
.field-feedback.is-notice {
    color: var(--blue);
}

.field-feedback.is-loading::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border: 2px solid var(--pink);
    border-top-color: var(--blue);
    border-radius: 50%;
    vertical-align: -1px;
    animation: feedback-spin .7s linear infinite;
}

@keyframes feedback-spin {
    to {
        transform: rotate(360deg);
    }
}

.divider {
    height: 2px;
    margin: 27px 0;
    background: repeating-linear-gradient(
        90deg,
        var(--pink) 0,
        var(--pink) 10px,
        transparent 10px,
        transparent 16px
    );
}

.continue-button {
    display: flex;
    width: 100%;
    min-height: 60px;
    align-items: center;
    justify-content: space-between;
    margin-top: 26px;
    padding: 0 18px;
    border: 2px solid var(--navy);
    border-radius: 13px;
    color: #fff;
    background: var(--red);
    box-shadow: 5px 5px 0 var(--navy);
    cursor: pointer;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: .025em;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.continue-button b {
    font-size: 24px;
    font-weight: 500;
}

.continue-button:hover {
    background: var(--red-dark);
    box-shadow: 7px 7px 0 var(--navy);
    transform: translate(-2px, -2px);
}

.continue-button:active {
    box-shadow: 1px 1px 0 var(--navy);
    transform: translate(4px, 4px);
}

.continue-button:focus-visible {
    outline: 4px solid var(--pink);
    outline-offset: 4px;
}

.privacy-note {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 7px;
    margin: 15px 8px 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
    text-align: center;
}

.privacy-note > span {
    display: grid;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--blue);
    font-size: 8px;
}

.order-card {
    position: relative;
    padding: 20px;
    overflow: hidden;
    background: var(--cream);
}

.order-card::after {
    content: "✦";
    position: absolute;
    top: -29px;
    right: -9px;
    color: var(--pink);
    font-size: 100px;
    line-height: 1;
    opacity: .75;
    pointer-events: none;
    transform: rotate(11deg);
}

.order-label {
    position: relative;
    z-index: 1;
}

.product-row {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 94px 1fr;
    gap: 16px;
    align-items: center;
    margin-top: 16px;
}

.product-art {
    position: relative;
    width: 94px;
    height: 112px;
    overflow: hidden;
    border: 2px solid var(--navy);
    border-radius: 12px;
    background: var(--blue);
    box-shadow: 4px 4px 0 var(--pink);
}

.product-art::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 26px;
    width: 38px;
    height: 58px;
    border: 7px solid var(--red);
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
}

.strap {
    position: absolute;
    z-index: 1;
    top: 42px;
    bottom: 0;
    width: 9px;
    background: var(--red);
}

.strap-one {
    left: 29px;
}

.strap-two {
    right: 29px;
}

.product-art strong {
    position: absolute;
    z-index: 2;
    right: -18px;
    bottom: 41px;
    color: var(--pink);
    font-size: 8px;
    letter-spacing: .05em;
    transform: rotate(90deg);
}

.product-copy small {
    color: var(--red);
    font: 800 8px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: .08em;
}

.product-copy h2 {
    margin: 5px 0 6px;
    color: var(--navy);
    font-size: 17px;
    font-weight: 950;
    letter-spacing: -.035em;
    line-height: 1.05;
}

.product-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
}

.summary-lines {
    display: grid;
    gap: 11px;
    margin-top: 22px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.summary-lines > div,
.total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.summary-lines span {
    color: var(--muted);
    font-size: 11px;
}

.summary-lines strong {
    color: var(--navy);
    font-size: 12px;
}

.summary-lines .free {
    color: #168257;
    font-size: 10px;
    letter-spacing: .06em;
}

.total-row {
    padding-top: 19px;
    color: var(--navy);
}

.total-row span {
    font-size: 12px;
    font-weight: 850;
}

.total-row strong {
    font-family: "Arial Rounded MT Bold", "Arial Black", "Avenir Next", sans-serif;
    font-size: 27px;
    font-weight: 950;
    letter-spacing: -.06em;
}

.stock-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 18px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
}

.stock-note > span {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    margin-top: 4px;
    border-radius: 50%;
    background: #20a267;
    box-shadow: 0 0 0 4px rgba(32, 162, 103, .13);
}

.stock-note p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
}

.stock-note strong {
    color: var(--navy);
}

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0 max(26px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 9px;
}

footer > span {
    color: var(--navy);
    font-family: "Arial Rounded MT Bold", "Avenir Next", sans-serif;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: -.05em;
}

footer p {
    margin: 0;
    text-align: right;
}

@media (min-width: 580px) {
    .site-header,
    .page-shell,
    footer {
        width: min(1120px, calc(100% - 48px));
    }

    .site-header {
        min-height: 78px;
    }

    .brand {
        font-size: 23px;
    }

    .safe-status {
        font-size: 10px;
    }

    .page-shell {
        padding-top: 32px;
    }

    .checkout-steps {
        margin-bottom: 32px;
    }

    .step small {
        display: block;
        margin-bottom: 1px;
        color: var(--muted);
        font-size: 7px;
        font-weight: 800;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .form-card {
        padding: 34px;
        border-radius: 24px;
        box-shadow: 9px 9px 0 var(--navy);
    }

    .form-card h1 {
        margin-top: 12px;
    }

    .form-intro {
        font-size: 14px;
    }

    .field-grid-personal {
        grid-template-columns: 1.35fr .65fr;
    }

    .address-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .field-postal {
        grid-column: span 2;
    }

    .field-street {
        grid-column: span 4;
    }

    .field-number {
        grid-column: span 2;
    }

    .field-complement {
        grid-column: span 4;
    }

    .field-neighborhood {
        grid-column: span 3;
    }

    .field-city {
        grid-column: span 2;
    }

    .field-state {
        grid-column: span 1;
    }

    .continue-button {
        min-height: 64px;
        padding-inline: 22px;
        font-size: 14px;
    }

    .order-card {
        padding: 24px;
        border-radius: 22px;
    }

    .product-row {
        grid-template-columns: 104px 1fr;
    }

    .product-art {
        width: 104px;
        height: 124px;
    }

    .product-art::before {
        left: 29px;
        width: 42px;
    }

    .strap-one {
        left: 32px;
    }

    .strap-two {
        right: 32px;
    }
}

@media (min-width: 920px) {
    .promo-strip {
        font-size: 11px;
    }

    .promo-strip > div {
        justify-content: center;
        gap: 42px;
    }

    .page-shell {
        padding-block: 38px 72px;
    }

    .checkout-layout {
        grid-template-columns: minmax(0, 1fr) 350px;
        gap: 30px;
        align-items: start;
    }

    .form-card {
        padding: 42px;
    }

    .order-card {
        position: sticky;
        top: 24px;
        padding: 27px;
    }

    .form-card h1 {
        font-size: 48px;
    }
}

@media (max-width: 350px) {
    .site-header,
    .page-shell,
    footer {
        width: min(100% - 18px, 1120px);
    }

    .form-card {
        padding: 21px 14px;
        box-shadow: 5px 5px 0 var(--navy);
    }

    .form-card h1 {
        font-size: 28px;
    }

    .checkout-steps {
        gap: 8px;
    }

    .step p {
        font-size: 10px;
    }

    .order-card {
        padding: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
