* {
    box-sizing: border-box;
}


:root {
    --vastec-blue: #0C1E45;
    --vastec-gold: #c99140;
    --page-wash: #F9F5F2;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: "Oakes Grotesk", Arial, Helvetica, sans-serif;
    color: var(--vastec-blue);
}

button {
    padding: 0px;
}

.is-hidden {
    display: none !important;
}

.app-shell {
    min-height: 100svh;
    display: grid;
    place-items: center;
}

.welcome-screen{
    width: 100%;
    background-image: url("../assets/_Image.png");
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position:  center !important;
}

.screen {
    position: relative;
    max-width: 1000px;
    width: 100%;
    min-height: 100svh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.welcome-content {
    position: relative;
    z-index: 1;
    color: #00276a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 48px 28px 72px;
    text-align: center;
}

.brand-lockup {
    margin-bottom: 30px;
}

.brand-name {
    font-size: clamp(1.72rem, 9vw, 2.35rem);
    font-weight: 400;
    letter-spacing: 0.24em;
    line-height: 1;
}

.brand-name span {
    display: inline-block;
    margin-left: 0.02em;
    font-size: 0.45em;
    vertical-align: 0.72em;
    letter-spacing: 0;
}

.brand-tagline {
    margin-top: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0;
}

h1 {
    margin: 0;
    text-transform: uppercase;
    line-height: 1.05;
}

h1 span,
h1 strong {
    display: block;
}

h1 span {
    font-size: 28px;
    font-weight: 600;
}

h1 strong {
    margin-top: 4px;
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 30px;
}

.welcome-content p {
    margin: 0;
    font-size: 26px;
    line-height: 1.2;
}

.primary-action {
    position: absolute;
    z-index: 2;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.25);
    gap: 8px;
    min-width: 172px;
    min-height: 36px;
    padding: 16px 28px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: var(--vastec-gold); 
    cursor: pointer;
    text-transform: uppercase;
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
}

.primary-action:focus-visible {
    outline: 3px solid rgba(0, 50, 127, 0.45);
    outline-offset: 4px;
}

.button-arrow {
    width: auto;
    height: auto;
    color: #fff;
    font-size: 1em;
    line-height: 1;
}

/* screen 2 */

.product-screen,
.measurement-screen,
.entry-screen,
.result-screen {
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    background: var(--page-wash);
}

.product-header {
    width: 100%;
    min-height: 138px;
    padding: 18px 24px 14px;
    color: #fff;
    background: var(--vastec-blue);
    text-align: center;
}

.product-header img {
    max-width: auto;
    height: 70px;
    
}

.brand-mark {
    color: var(--vastec-gold);
    font-size: 54px;
    line-height: 0.75;
    font-weight: 300;
    margin-bottom: 8px;
}

.product-brand {
    margin-bottom: 0;
}

.product-brand .brand-name {
    font-size: 38px;
    letter-spacing: 0.24em;
}

.product-brand .brand-tagline {
    color: #fff;
    font-size: 10px;
    font-weight: 400;
}

.product-content {
    flex: 1;
    width: 100%;
    padding: 36px 40px 0;
}

.product-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.product-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: #00276a;
    font-size: 42px;
    font-weight: 300;
    padding: 4px;
}
.product-icon img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    filter: invert(1);
}

.measurement-ruler-icon i {
    color: #fff;
    font-size: 34px;
    transform: rotate(0deg);
}

.product-title-row h2 {
    margin: 0;
    color: #00276a;
    text-transform: uppercase;
    font-size: 42px;
    font-weight: 600;
    line-height: 0.94;
}

.product-title-row h2 span {
    display: block;
    color: var(--vastec-gold);
}

.title-rule {
    width: 88px;
    height: 2px;
    margin: 14px 0 8px;
    background: var(--vastec-gold);
}

.product-title-row p {
    max-width: 230px;
    margin: 0;
    font-size: 14px;
    line-height: 1.18;
}

.product-picker {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 70px;
    max-width: 530px;
    margin: 0 auto 40px;
}

.product-picker::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--vastec-gold);
    transform: translateX(-50%);
}

.product-card {
    position: relative;
    min-height: 230px;
    font-family: "Oakes Grotesk", Arial, Helvetica, sans-serif;
    border: 1px solid #ac987f;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.14);
    cursor: pointer;
}

.product-card[disabled] {
    cursor: default;
}

.product-image {
    height: 85%;
    background-position: top;
    background-repeat: no-repeat;
    background-size: contain;
}

.product-card.has-image .product-image {
    background-image: var(--product-image);
}

.product-name {
    min-height: 15%;
    display: grid;
    place-items: center;
    padding: 6px 8px;
    border-top: 2px solid #e5bb78;
    font-family: "Oakes Grotesk", Arial, Helvetica, sans-serif;
    color: #00276a;
    text-transform: uppercase;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    line-height: 0.92;
}

.product-badge {
    position: absolute;
    top: 20px;
    right: -38px;
    width: 132px;
    padding: 5px 8px;
    border-radius: 0;
    color: #fff;
    background: var(--vastec-gold);
    text-transform: uppercase;
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    transform: rotate(45deg);
    transform-origin: center;
}

.learn-more-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 480px);
    min-height: 66px;
    margin: 0 auto 42px;
    padding: 12px 24px;
    border: 0;
    border-radius: 16px;
    font-family: "Oakes Grotesk", Arial, Helvetica, sans-serif;
    color: #fff;
    background: var(--vastec-gold);
    box-shadow: 18px 16px 24px rgba(0, 0, 0, 0.28);
    /* cursor: pointer; */
    text-transform: uppercase;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    line-height: 0.95;
}

.confidence-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    padding: 18px 18px;
    border: 2px solid #e4a944;
    border-radius: 16px;
    background: #fff9ef;
    margin-bottom: 20px;
}

.confidence-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.confidence-item + .confidence-item {
    border-left: 2px solid #e4a944;
    padding-left: 20px;
}

.confidence-icon {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.confidence-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    aspect-ratio: square;
}
.confidence-item h3 {
    margin: 0 0 4px;
    color: #00276a;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 900;
    text-align: center;
}

.confidence-item p {
    margin: 0;
    color: #00276a;
    font-size: 11px;
    line-height: 1.14;
}

@media (max-width: 620px) {

    .welcome-screen{
    width: 100%;
    background-image: url("../assets/background.png");
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
} 

    .product-header {
        min-height: 86px;
        padding: 10px 18px 8px;
    }

    .brand-mark {
        font-size: 34px;
        margin-bottom: 6px;
    }

    .product-brand .brand-name {
        font-size: 21px;
    }

    .product-brand .brand-tagline {
        font-size: 6px;
    }

    .product-content {
        padding: 28px 18px 0;
    }

    .product-title-row {
        gap: 10px;
        margin-bottom: 20px;
    }

    .product-icon {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
        font-size: 34px;
    }

    .product-title-row h2 {
        font-size: 30px;
    }

    .product-title-row p {
        font-size: 12px;
    }

    .product-picker {
        gap: 8px 44px;
        margin-bottom: 28px;
    }

    .learn-more-action {
        min-height: 48px;
        margin-bottom: 28px;
        border-radius: 12px;
        font-size: 18px;
    }

    .confidence-panel {
        gap: 12px;
        padding: 10px 10px;
        border-radius: 10px;
    }

    .confidence-item {
        gap: 8px;
    }

.confidence-item + .confidence-item {
    padding-left: 12px;
    }
}

/* screen 3 */

.measurement-content {
    flex: 1;
    width: 100%;
    padding: 38px 10px 26px;
}

.measurement-title-row {
    justify-content: flex-start;
    width: min(100% - 32px, 600px);
    margin: 0 auto 12px;
}

.measurement-title-row h2 {
    font-size: 42px;
}

.measurement-title-row p {
    max-width: 285px;
    font-size: 15px;
}

.measurement-guide {
    position: relative;
    width: 100%;
    min-height: auto;
    margin: 0 auto;
}

.measurement-guide img{
    width: 100%;
    height: auto;
    max-width: 400px;
    display: block;
    margin: 0 auto;
}


.measurement-note {
    position: absolute;
    width: 205px;
    color: #00276a;
    font-size: 10px;
    line-height: 1.08;
}

.measurement-note span {
    position: absolute;
    top: 0;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #00276a;
    font-size: 10px;
    font-weight: 600;
}

.measurement-note strong {
    display: block;
    font-size: 11px;
    font-weight: 900;
}

.measurement-note p {
    margin: 3px 0 0;
}

.note-left {
    left: 0;
    padding-left: 38px;
}

.note-left span {
    left: 0;
}

.note-right {
    right: 0;
    padding-left: 42px;
}

.note-right span {
    left: 0;
}

.note-upper-thigh {
    top: 142px;
}

.note-mid-thigh {
    top: 210px;
}

.note-calf {
    top: 292px;
}

.note-ankle {
    top: 360px;
}

.note-waist {
    top: 88px;
}

.note-hips {
    top: 184px;
}

.measurement-note::after {
    content: "";
    position: absolute;
    top: 18px;
    height: 1px;
    border-top: 1px dashed var(--vastec-gold);
}

.note-left::after {
    left: 100%;
    width: 66px;
}

.note-right::after {
    right: 100%;
    width: 52px;
}

.please-note {
    width: min(100% - 20px, 640px);
    margin: 0 auto 26px;
    padding: 16px 32px;
    border: 3px solid var(--vastec-gold);
    border-radius: 16px;
    color: #00276a;
}

.please-note h3 {
    margin: 0 0 6px;
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 600;
}

.please-note p {
    max-width: 500px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.25;
}

.measurement-actions {
    width: min(100% - 40px, 560px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: center;
}

.measurement-primary-action,
.measurement-secondary-actions button {
    border: 0;
    border-radius: 16px;
    font-family: "Oakes Grotesk", Arial, Helvetica, sans-serif;
    color: #fff;
    background: var(--vastec-gold);
    box-shadow: 12px 12px 18px rgba(0, 0, 0, 0.26);
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 600;
}

.measurement-primary-action {
    min-height: 82px;
    padding: 12px 18px;
    font-size: 20px;
    line-height: 1.05;
}

.measurement-primary-action span {
    display: block;
}

.measurement-secondary-actions {
    display: grid;
    gap: 14px;
}

.measurement-secondary-actions button {
    min-height: 38px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 17px;
}

@media (max-width: 620px) {
    .measurement-content {
        padding-top: 30px;
    }

    .measurement-title-row {
        width: min(100% - 20px, 370px);
    }

    .measurement-title-row h2 {
        font-size: 30px;
    }

    .measurement-title-row p {
        max-width: 220px;
        font-size: 11px;
    }

    .measurement-guide {
        min-height: 300px;
    }

    .measurement-person {
        top: 8px;
        width: 148px;
        height: 292px;
    }

    .measurement-note {
        width: 118px;
        font-size: 7px;
    }

    .measurement-note span {
        width: 22px;
        height: 22px;
        font-size: 7px;
    }

    .measurement-note strong {
        font-size: 7px;
    }

    .note-left {
        padding-left: 28px;
    }

    .note-right {
        padding-left: 28px;
    }

    .note-upper-thigh {
        top: 100px;
    }

    .note-mid-thigh {
        top: 150px;
    }

    .note-calf {
        top: 208px;
    }

    .note-ankle {
        top: 256px;
    }

    .note-waist {
        top: 66px;
    }

    .note-hips {
        top: 134px;
    }

    .note-left::after {
        width: 18px;
    }

    .note-right::after {
        width: 18px;
    }

    .please-note {
        padding: 10px 26px;
        border-width: 2px;
        border-radius: 10px;
        margin-bottom: 18px;
    }

    .please-note h3 {
        font-size: 14px;
    }

    .please-note p {
        font-size: 12px;
    }

    .measurement-actions {
        width: min(100% - 30px, 340px);
        gap: 16px;
    }

    .measurement-primary-action {
        min-height: 58px;
        font-size: 12px;
        border-radius: 10px;
    }

    .measurement-secondary-actions {
        gap: 8px;
    }

    .measurement-secondary-actions button {
        min-height: 28px;
        font-size: 11px;
    }
}

/* screen 4 */

.entry-content {
    flex: 1;
    width: 100%;
    padding: 20px 10px;
}

.entry-title-row {
    justify-content: flex-start;
    width: min(100% - 34px, 600px);
    margin: 0 auto 34px;
}

.entry-icon i {
    color: #fff;
    font-size: 28px;
}

.entry-title-row h2 {
    font-size: 38px;
    line-height: 1.2;
}

.entry-title-row p {
    max-width: 285px;
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.2;
}

.measurement-form {
    width: min(100% - 20px, 650px);
    margin: 0 auto 36px;
    overflow: hidden;
    border: 1px solid #d6dbe4;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.36);
}

.measurement-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 18px;
    align-items: center;
    min-height: 78px;
    padding: 12px 26px;
    border-bottom: 1px solid #e0e3e9;
}

.measurement-field:last-child {
    border-bottom: 0;
}

.measurement-field-copy {
    display: flex;
    align-items: center;
    gap: 14px;
}

.measurement-field-copy > .measurement-code {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: #00276a;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
}

.measurement-code .code-prefix {
    width: auto;
    height: auto;
    flex: 0 0 auto;
    color: inherit;
    background: transparent;
    font-size: 0.92em;
    font-weight: 400;
}

.measurement-code strong {
    font-weight: 900;
}

.measurement-code-word {
    font-size: 9px;
    font-weight: 800;
}

.measurement-field-copy label {
    display: block;
    color: #00276a;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.measurement-field-copy p {
    max-width: 190px;
    margin: 3px 0 0;
    color: #00276a;
    font-size: 10px;
    /* font-weight: 700; */
    line-height: 1.12;
}

.measurement-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.measurement-field.has-error .measurement-input-wrap input {
    border-color: #b42318;
    box-shadow: 0 0 0 2px rgba(180, 35, 24, .12);
}

.validation-popup {
    position: fixed;
    z-index: 1000;
    right: 24px;
    top: 24px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: min(420px, calc(100% - 32px));
    padding: 18px 16px;
    overflow: hidden;
    border: 1px solid rgba(201, 145, 64, .65);
    border-radius: 20px;
    background: var(--vastec-blue);
    color: #fff;
    font-family: "Oakes Grotesk", Arial, Helvetica, sans-serif;
    box-shadow: 0 14px 35px rgba(12, 30, 69, .3);
    animation: validation-popup-in .2s ease-out;
}

.validation-popup::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: var(--vastec-gold);
}

.validation-popup.is-hidden { display: none; }
.validation-popup-icon {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: var(--vastec-gold);
    color: var(--vastec-blue);
    font-size: 19px;
}
.validation-popup-copy { flex: 1; }
.validation-popup-copy strong { display: block; margin-bottom: 5px; color: var(--vastec-gold); font-size: 16px; }
.validation-popup-copy p { margin: 0; color: rgba(255, 255, 255, .9); font-size: 13px; line-height: 1.45; }
.validation-popup button {
    display: grid;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    cursor: pointer;
    font-size: 15px;
}

.validation-popup button:hover,
.validation-popup button:focus-visible {
    border-color: var(--vastec-gold);
    color: var(--vastec-gold);
    outline: none;
}

@keyframes validation-popup-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .validation-popup { top: 16px; right: 16px; }
}

.measurement-input-wrap input {
    width: 220px;
    min-height: 54px;
    border: 1px solid #d8dce4;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    color: #00276a;
    font-family: "Oakes Grotesk", Arial, Helvetica, sans-serif;
    font-size: 24px;
    text-align: center;
}

.measurement-input-wrap input::placeholder {
    color: rgba(96, 105, 122, 0.34);
}

.measurement-input-wrap input:focus {
    border-color: var(--vastec-gold);
    outline: 3px solid rgba(201, 145, 64, 0.18);
}

.measurement-input-wrap em {
    color: #8a8f9c;
    font-size: 10px;
    font-style: normal;
    text-transform: uppercase;
}

.entry-actions {
    width: min(100% - 86px, 480px);
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

.entry-action {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 28px;
    border: 0;
    border-radius: 16px;
    color: #fff;
    background: var(--vastec-gold);
    box-shadow: 13px 12px 18px rgba(0, 0, 0, 0.22);
    cursor: pointer;
    font-family: "Oakes Grotesk", Arial, Helvetica, sans-serif;
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.entry-action .button-arrow {
    flex: 0 0 auto;
    font-size: 1.05em;
}

@media (max-width: 620px) {
    .entry-content {
        padding: 20px 4px 10px;
    }

    .entry-title-row {
        width: min(100% - 28px, 360px);
        margin-bottom: 24px;
    }

    .entry-title-row h2 {
        font-size: 25px;
    }

    .entry-title-row p {
        margin-top: 14px;
        font-size: 11px;
    }

    .measurement-form {
        width: calc(100% - 10px);
        margin-bottom: 22px;
        border-radius: 12px;
    }

    .measurement-field {
        grid-template-columns: minmax(0, 1fr) 132px;
        gap: 8px;
        min-height: 50px;
        padding: 10px;
    }

    .measurement-field-copy {
        gap: 8px;
    }

    .measurement-field-copy > .measurement-code {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        font-size: 12px;
    }

    .measurement-code-word {
        font-size: 9px;
    }

    .measurement-field-copy label {
        font-size: 12px;
    }

    .measurement-field-copy p {
        max-width: 156px;
        font-size: 11px;
    }

    .measurement-input-wrap {
        gap: 4px;
    }

    .measurement-input-wrap input {
        width: 110px;
        min-height: 36px;
        border-radius: 13px;
        font-size: 16px;
    }

    .measurement-input-wrap em {
        font-size: 10px;
    }

    .entry-actions {
        width: min(100% - 86px, 300px);
        gap: 10px;
    }

    .entry-action {
        min-height: 44px;
        padding: 9px 16px;
        border-radius: 10px;
        font-size: 16px;
    }

    .entry-action .button-arrow {
        font-size: 1.05em;
    }
}

/* screen 5 */

.result-content {
    flex: 1;
    width: 100%;
    padding: 88px 12px 18px;
}

.result-title-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: min(100% - 60px, 560px);
    margin: 0 auto 38px;
}

.result-title-dot {
    width: 58px;
    height: 58px;
}

.result-title-dot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;

}

.result-title-row h2 {
    margin: 4px 0 20px;
    color: #00276a;
    font-size: 33px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
}

.result-title-row p {
    max-width: 390px;
    margin: 0;
    color: #00276a;
    font-size: 15px;
    line-height: 1.2;
}

.best-match {
    width: min(100% - 90px, 340px);
    margin: 0 auto;
    text-align: center;
}

.best-match-label {
    display: inline-block;
    padding: 6px 12px 5px;
    border-radius: 8px 8px 0 0;
    color: #fff;
    background: #00276a;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.recommended-size {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    min-height: 92px;
    border: 3px solid var(--vastec-gold);
    border-radius: 10px;
    color: #dfa735;
    background: #fffdf9;
    font-size: 74px;
    font-weight: 600;
    line-height: 0.9;
}

.best-match p {
    max-width: 330px;
    margin: 8px auto 0;
    color: #00276a;
    font-size: 15px;
    line-height: 1.2;
}

.result-rule {
    width: 330px;
    max-width: calc(100% - 96px);
    height: 2px;
    margin: 28px auto 22px;
    background: var(--vastec-gold);
}

.summary-title {
    margin: 0 0 40px;
    color: #00276a;
    font-size: 16px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.summary-grid {
    width: min(100% - 18px, 640px);
    margin: 0 auto 112px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 34px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 12px;
    border-right: 2px solid #e4a944;
}

.summary-item:nth-child(3n) {
    border-right: 0;
}

.summary-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--vastec-gold);
    font-size: 21px;
}

.summary-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    aspect-ratio: square;
    mix-blend-mode: multiply;
}

.summary-item strong {
    display: block;
    color: #00276a;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.summary-item p {
    margin: 3px 0 0;
    color: #00276a;
    font-size: 10px;
    line-height: 1;
}

.summary-code {
    text-transform: none;
}

.start-over-action {
    width: min(100% - 120px, 410px);
    min-height: 74px;
    margin: 0 auto 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    border: 2px solid var(--vastec-gold);
    border-radius: 14px;
    color: #00276a;
    background: #fffdfa;
    box-shadow: 11px 12px 16px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    font-family: "Oakes Grotesk", Arial, Helvetica, sans-serif;
    font-size: 31px;
    font-weight: 900;
    text-transform: uppercase;
}

.start-over-action i {
    font-size: 38px;
}

.support-panel {
    width: calc(100% - 20px);
    margin: 0 auto;
    padding: 18px 70px;
    display: flex;
    align-items: center;
    gap: 22px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
}

.support-icon {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--vastec-gold);
    font-size: 40px;
}

.support-panel h3 {
    margin: 0;
    color: #00276a;
    font-size: 31px;
    line-height: 1;
}

.support-panel p,
.support-panel a {
    margin: 4px 0 0;
    font-size: 19px;
    line-height: 1.1;
}

.support-panel p {
    color: #00276a;
}

.support-panel a {
    display: inline-block;
    color: var(--vastec-gold);
}

.support-contact {
    display: grid;
    gap: 4px;
    margin-top: 10px;
}

.support-contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 0;
    color: #00276a;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.support-contact i {
    width: 18px;
    color: var(--vastec-gold);
    text-align: center;
}

@media (max-width: 620px) {
    .result-content {
        padding: 44px 6px 12px;
    }

    .result-title-row {
        width: min(100% - 24px, 340px);
        gap: 10px;
        margin-bottom: 24px;
    }

    .result-title-dot {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .result-title-row h2 {
        margin: 2px 0 14px;
        font-size: 20px;
    }

    .result-title-row p {
        font-size: 11px;
    }

    .best-match {
        width: min(100% - 90px, 210px);
    }

    .best-match-label {
        padding: 5px 9px 4px;
        border-radius: 5px 5px 0 0;
        font-size: 12px;
    }

    .recommended-size {
        min-width: 122px;
        min-height: 62px;
        border-width: 2px;
        border-radius: 7px;
        font-size: 45px;
    }

    .best-match p {
        font-size: 11px;
    }

    .result-rule {
        width: 215px;
        margin: 16px auto 16px;
    }

    .summary-title {
        margin-bottom: 28px;
        font-size: 13px;
    }

    .summary-grid {
        width: calc(100% - 6px);
        margin-bottom: 64px;
        row-gap: 22px;
    }

    .summary-item {
        gap: 5px;
        min-height: 42px;
        padding: 0 5px;
    }


    .summary-item strong {
        font-size: 11px;
    }

    .summary-item p {
        font-size: 11px;
    }

    .start-over-action {
        width: min(100% - 106px, 224px);
        min-height: 48px;
        margin-bottom: 28px;
        gap: 16px;
        border-radius: 8px;
        font-size: 21px;
    }

    .start-over-action i {
        font-size: 27px;
    }

    .support-panel {
        width: calc(100% - 12px);
        padding: 12px 35px;
        gap: 14px;
        border-radius: 7px;
    }

    .support-icon {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
        font-size: 28px;
    }

    .support-panel h3 {
        font-size: 21px;
    }

    .support-panel p,
    .support-panel a {
        font-size: 13px;
    }

    .support-contact {
        margin-top: 6px;
    }

    .support-contact a {
        font-size: 11px;
    }
}

/* measurement tips page */

.tips-screen {
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    background: var(--page-wash);
}

.tips-header {
    width: 100%;
    min-height: 134px;
    padding: 18px 24px 14px;
    background: var(--vastec-blue);
    text-align: center;
}

.tips-header img {
    height: 70px;
    width: auto;
}

.tips-content {
    flex: 1;
    width: 100%;
    padding: 42px 44px 48px;
}

.tips-title-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    width: min(100%, 600px);
    margin: 0 auto 44px;
}

.tips-title-icon {
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #00276a;
}

.tips-title-icon i {
    font-size: 35px;
}

.tips-title-row h1 {
    margin: 0 0 8px;
    color: #00276a;
    text-transform: uppercase;
    font-size: 44px;
    font-weight: 700;
    line-height: 0.92;
}

.tips-title-row h1 span {
    display: block;
    margin-top: 10px;
    color: var(--vastec-gold);
}

.tips-title-row p {
    max-width: 310px;
    margin: 0;
    color: #00276a;
    font-size: 16px;
    line-height: 1.16;
}

.tips-panel {
    width: min(100%, 642px);
    margin: 0 auto 62px;
    overflow: hidden;
    border: 1px solid #d9dde5;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.22);
}

.tips-item {
    display: grid;
    grid-template-columns: 156px minmax(0, 1fr);
    min-height: 148px;
    padding: 20px;
}

.tips-item + .tips-item {
    border-top: 1px solid #d9dde5;
}

.tips-item-icon {
    min-height: 100%;
    display: grid;
    place-items: center;
    border-right: 1px solid #d9dde5;
    color: #e0a433;
}

.tips-item-icon img {
    height: auto;
    width: 50px;
}

.tips-item-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 28px;
}

.tips-item-copy h2 {
    margin: 0 0 18px;
    color: #0c2d68;
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
}

.tips-item-copy p {
    margin: 0;
    color: #0c2d68;
    font-size: 16px;
    line-height: 1.2;
}

.tips-actions {
    width: min(100% - 32px, 520px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.tips-primary-action,
.tips-secondary-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #fff;
    background: var(--vastec-gold);
    box-shadow: 12px 12px 18px rgba(0, 0, 0, 0.24);
    font-family: "Oakes Grotesk", Arial, Helvetica, sans-serif;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

.tips-primary-action {
    min-height: 78px;
    padding: 12px 18px;
    flex-wrap: wrap;
    column-gap: 8px;
    border-radius: 12px;
    font-size: 19px;
    line-height: 1.08;
}

.tips-primary-action .button-arrow {
    font-size: 1.05em;
}

.tips-primary-action span:not(.button-arrow) {
    display: block;
}

.tips-secondary-actions {
    display: grid;
    gap: 14px;
}

.tips-secondary-actions a {
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 16px;
    line-height: 1;
}

.measure-content {
    flex: 1;
    width: 100%;
    padding: 36px 24px 48px;
}

.measure-intro {
    max-width: 365px;
    margin: 0 auto 44px;
    color: #00276a;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.08;
    text-align: center;
    text-transform: uppercase;
}

.measure-grid {
    display: grid;
    gap: 62px 30px;
}

.measure-grid img{
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.measure-card {
    text-align: center;
}

.measure-card img {
    width: 128px;
    max-width: 100%;
    aspect-ratio: 1;
    display: block;
    margin: 0 auto 14px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 8px 9px 14px rgba(0, 0, 0, 0.14);
}

.measure-card.is-highlighted img {
    border-radius: 0;
    box-shadow: none;
}

.measure-card h2 {
    margin: 0 0 8px;
    color: #0c2d68;
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.08;
}

.measure-card h2 span {
    display: block;
}

.measure-card p {
    max-width: 138px;
    margin: 0 auto;
    color: #0c2d68;
    font-size: 12px;
    line-height: 1.12;
}

.measure-actions {
    grid-template-columns: minmax(0, 1fr);
    width: min(100% - 70px, 346px);
}

.measure-actions .tips-primary-action {
    min-height: 86px;
    border-radius: 10px;
    font-size: 24px;
}

.chart-content {
    flex: 1;
    width: 100%;
    padding: 12px 20px 58px;
}

.chart-title {
    margin: 0 0 16px;
    color: #00276a;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
}

.chart-panel {
    width: min(100%, 608px);
    margin: 0 auto 28px;
    overflow: hidden;
    border: 1px solid #d5dbe4;
    border-radius: 9px;
    background: #fff;
}

.chart-section-title,
.chart-subhead {
    color: #fff;
    background: #070d28;
    text-align: center;
    text-transform: uppercase;
}

.chart-section-title {
    width: calc(100% - 94px);
    margin-left: auto;
    padding: 7px 8px 6px;
    border-radius: 4px 4px 0 0;
    font-size: 17px;
    font-weight: 900;
    line-height: 1;
}

.size-table {
    width: 100%;
    border-collapse: collapse;
    color: #0c2d68;
    table-layout: fixed;
}

.size-table th,
.size-table td {
    height: 54px;
    padding: 4px 5px;
    border: 1px solid #dce1e8;
    text-align: center;
    vertical-align: middle;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.05;
}

.size-table thead th {
    height: 46px;
    font-size: 19px;
    font-weight: 900;
}

.size-table thead th:first-child {
    background: #fff;
}

.size-table thead th:nth-child(2) {
    background: #e7e8ee;
}

.size-table thead th:nth-child(3) {
    background: #d9ddd1;
}

.size-table thead th:nth-child(4) {
    background: #ebe0d9;
}

.size-table thead th:nth-child(5) {
    background: #efd5cb;
}

.size-table thead th:nth-child(6) {
    background: #d5b4d2;
}

.size-table thead th:nth-child(7) {
    background: #9fa4cc;
}

.size-table thead th:nth-child(8) {
    background: #abc9e8;
}

.size-table th:first-child {
    width: 118px;
}

.size-table tbody th {
    text-align: left;
    font-weight: 500;
}

.size-table tbody th strong {
    font-weight: 900;
}

.size-table .chart-subhead {
    height: 44px;
    color: #0c2d68;
    background: #fff;
    font-size: 19px;
    font-weight: 900;
    text-align: center;
}

.chart-note {
    margin: 0;
    padding: 9px 20px 12px;
    color: #0c2d68;
    text-align: center;
    font-size: 12px;
    line-height: 1.16;
}

.chart-actions {
    grid-template-columns: minmax(0, 1fr);
    width: min(100% - 112px, 410px);
}

.chart-actions .tips-primary-action {
    min-height: 72px;
    gap: 12px;
    border-radius: 10px;
    font-size: 19px;
    white-space: nowrap;
}

.chart-actions .button-arrow {
    font-size: 1.1em;
}

.chart-grid img {
    width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;

}

.scan-content {
    flex: 1;
    width: 100%;
    padding: 60px 20px 18px;
}

.scan-title-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 520px;
    margin: 0 auto 12px;
}

.scan-title-icon {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #00276a;
}

.scan-title-icon img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.scan-title-row h1 {
    margin: 10px 0 12px;
    color: #00276a;
    font-size: 24px;
    font-weight: 900;
    line-height: 0.95;
    text-transform: uppercase;
}

.scan-title-row p {
    max-width: 275px;
    margin: 0;
    color: #00276a;
    font-size: 11px;
}

.scan-stage {
    width: min(100%, 520px);
    margin: 0 auto 22px;
    display: flex;
    gap: 14px;
}

.scan-left {
    width: 50%;
    display: grid;
    gap: 16px;
    padding-bottom: 32px;
}

.qr-card,
.scan-tip,
.scan-safety {
    border: 1px solid #e1b268;
    background: rgba(255, 255, 255, 0.8);
}

.qr-card {
    padding: 20px 20px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px;
    color: #00276a;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

.qr-card img {
    width: 100%;
    max-width: 146px;
    aspect-ratio: 1;
    object-fit: cover;
}

.qr-card strong {
    margin-top: 5px;
    display: block;
    font-size: 16px;
    font-weight: 600;
}

.scan-tip {
    min-height: 86px;
    padding: 13px 16px;
    display: flex;
    align-items: center;
    gap: 13px;
    border-radius: 9px;
    color: #00276a;
}

.scan-tip-icon {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #00276a;
}

.scan-tip-icon img {
    width: 39px;
    height: 39px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.scan-tip h2 {
    margin: 0 0 5px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.scan-tip p {
    margin: 0;
    font-size: 11px;
}

.scan-phone {
 width: 50%;
}
.scan-phone img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.scan-safety {
    width: min(100%, 550px);
    margin: 0 auto;
    padding: 14px 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 10px;
}

.scan-safety article {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px;
}

.scan-safety article + article {
    border-left: 2px solid var(--vastec-gold);
}

.scan-safety img {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    object-fit: contain;
}

.scan-safety h2 {
    margin: 0 0 4px;
    color: #00276a;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
}

.scan-safety p {
    margin: 0;
    color: #00276a;
    font-size: 10px;
}

@media (max-width: 620px) {
    .tips-header {
        min-height: 67px;
        padding: 4px 18px 6px;
    }

    .tips-header img {
        height: 58px;
    }

    .tips-content {
        padding: 20px 23px 38px;
    }

    .tips-title-row {
        gap: 10px;
        width: min(100%, 330px);
        margin-bottom: 26px;
    }

    .tips-title-icon {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
    }

    .tips-title-icon i {
        font-size: 27px;
    }

    .tips-title-row h1 {
        font-size: 25px;
        line-height: 1.2;
    }

    .tips-title-row h1 span {
        margin-top: 5px;
    }

    .tips-title-row p {
        max-width: 220px;
        padding-left: 4px;
        font-size: 11px;
        line-height: 1.12;
    }

    .tips-panel {
        width: 100%;
        margin-bottom: 34px;
        border-radius: 8px;
    }

    .tips-item {
        grid-template-columns: 88px minmax(0, 1fr);
        min-height: 69px;
        padding: 10px;
    }

    .tips-item-icon i {
        font-size: 33px;
    }

    .level-icon::before {
        width: 58px;
        height: 14px;
        background-size: 100% 11px, 100% 1px;
        background-position: 0 0, 0 6px;
    }

    .tips-item-copy {
        padding-left: 12px;
    }

    .tips-item-copy h2 {
        margin-bottom: 10px;
        font-size: 12px;
        line-height: 1.1;
    }

    .tips-item-copy p {
        font-size: 11px;
        line-height: 1.14;
    }

    .tips-actions {
        width: min(100% - 32px, 450px);
        gap: 16px;
    }

    .tips-primary-action {
        min-height: 54px;
        padding: 9px 11px;
        border-radius: 8px;
        font-size: 11px;
    }

    .tips-primary-action .button-arrow {
        font-size: 1.05em;
    }

    .tips-secondary-actions {
        gap: 8px;
    }

    .tips-secondary-actions a {
        min-height: 27px;
        padding: 7px 9px;
        font-size: 10px;
    }

    .measure-content {
        padding: 18px 14px 58px;
    }

    .measure-intro {
        margin-bottom: 26px;
        font-size: 16px;
    }

    .measure-grid {
        width: 100%;
        margin-bottom: 30px;
        gap: 36px 18px;
    }

    .measure-card img {
        width: 82px;
        margin-bottom: 8px;
    }

    .measure-card.is-highlighted img {
        border-width: 3px;
    }

    .measure-card h2 {
        margin-bottom: 5px;
        font-size: 12px;
    }

    .measure-card p {
        max-width: 82px;
        font-size: 8px;
        line-height: 1.08;
    }

    .measure-actions {
        width: min(100% - 120px, 174px);
    }

    .measure-actions .tips-primary-action {
        min-height: 40px;
        border-radius: 8px;
        font-size: 14px;
    }

    .chart-content {
        padding: 7px 10px 30px;
    }

    .chart-title {
        margin-bottom: 15px;
        font-size: 16px;
    }

    .chart-panel {
        margin-bottom: 15px;
        border-radius: 6px;
    }

    .chart-section-title {
        width: calc(100% - 67px);
        padding: 5px 6px 4px;
        font-size: 11px;
    }

    .size-table th,
    .size-table td {
        height: 34px;
        padding: 2px 2px;
        font-size: 10px;
        line-height: 1.05;
    }

    .size-table thead th {
        height: 25px;
        font-size: 10px;
    }

    .size-table th:first-child {
        width: 58px;
    }

    .size-table .chart-subhead {
        height: 28px;
        font-size: 12px;
    }

    .chart-note {
        padding: 5px 13px 8px;
        font-size: 7px;
    }

    .chart-actions {
        width: min(100% - 110px, 208px);
    }

    .chart-actions .tips-primary-action {
        min-height: 37px;
        gap: 7px;
        border-radius: 7px;
        font-size: 11px;
    }

    .chart-actions .button-arrow {
        font-size: 1.1em;
    }


}



/* how it works page */

.works-screen::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #8d43ff;
}

.works-content {
    flex: 1;
    width: 100%;
    padding: 36px 46px 44px;
}

.works-content > h1 {
    margin: 0 0 40px;
    color: #00276a;
    font-size: 44px;
    font-weight: 700;
    line-height: 0.95;
    text-align: center;
    text-transform: uppercase;
}

.works-list {
    width: min(100%, 470px);
    margin: 0 auto;
    display: grid;
    gap: 34px;
}

.works-step {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
}

.works-icon {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.works-icon img {
    width: 62px;
    height: 62px;
    object-fit: contain;
}

.works-step h2 {
    margin: 0 0 8px;
    color: #00276a;
    font-size: 24px;
    font-weight: 600;
    line-height: 0.95;
}

.works-step p {
    max-width: 260px;
    margin: 0;
    color: #00276a;
    font-size: 22px;
}

@media (max-width: 620px) {
    .works-content {
        padding: 19px 20px 44px;
    }

    .works-content > h1 {
        margin-bottom: 22px;
        font-size: 24px;
    }

    .works-list {
        gap: 10px;
    }

    .works-step {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 20px;
    }

   

    .works-step h2 {
        margin-bottom: 5px;
        font-size: 16px;
    }

    .works-step p {
        max-width: 150px;
        font-size: 14px;
    }
}
