:root {
    --turquoise-color: #009E94;
    --turquoise-color-white: #d1faf9;
    --turquoise-transperent-color: #f6fefe;
    --white-color: #fff;
    --dark-blue-color: #001f5b;
    --font-heading: 'Nexa', Arial, sans-serif;
    --font-body: 'Avenir Next World', Arial, sans-serif;
}

@font-face {
    font-family: 'Nexa';
    src: url('../assets/fonts/nexa-regular.otf') format('opentype');
    font-weight: 400;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'Nexa';
    src: url('../assets/fonts/nexa-bold.otf') format('opentype');
    font-weight: 700;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'Nexa';
    src: url('../assets/fonts/nexa-extra-bold.otf') format('opentype');
    font-weight: 800;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'Avenir Next World';
    src: url('../assets/fonts/avenir-next-world-regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'Avenir Next World';
    src: url('../assets/fonts/avenir-next-world-medium.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'Avenir Next World';
    src: url('../assets/fonts/avenir-next-world-demi.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'Avenir Next World';
    src: url('../assets/fonts/avenir-next-world-bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
    font-style: normal;
}

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

h1,
h2,
h3 {
    font-family: var(--font-heading);
    letter-spacing: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.hidden {
    display: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    position: sticky;
    top: 0;
    z-index: 30;
    width: 100%;
    margin: 0;
    background-color: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid rgba(209, 250, 249, 0.72);
    box-shadow: 0 10px 28px rgba(0, 158, 148, 0.08);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100% - 40px, 1200px);
    min-height: 76px;
    margin: 0 auto;
    padding: 0;
    gap: 24px;
    box-sizing: border-box;
}

.logo {
    width: 136px;
    height: auto;
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.logo-link,
.twiin-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.twiin-header-logo {
    width: 103px;
    height: auto;
}

.help {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.help-link {
    color: var(--turquoise-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.language {
    color: var(--turquoise-color);
    font-size: 14px;
    font-weight: 700;
}

.language-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid rgba(0, 158, 148, 0.2);
    border-radius: 8px;
    box-sizing: border-box;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.language-switch:hover,
.language-switch:focus-visible {
    background-color: rgba(0, 158, 148, 0.08);
    border-color: rgba(0, 158, 148, 0.45);
    color: var(--turquoise-color);
}

.go-to-help {
    display: none;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid var(--turquoise-color);
    margin-left: 10px;
    text-decoration: none;
}

.video-section {
    position: relative;
    background-color: var(--dark-blue-color);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    margin: 16px 16px;
}

.video-section video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    cursor: pointer;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
    opacity: 0.7;
}

.play-icon.hidden {
    display: none;
}

.mute-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
}

@media (min-width: 767px) {
    .go-to-help {
        display: block;
    }

    .logo {
        width: 136px;
        height: auto;
    }

    .twiin-header-logo {
        width: 103px;
    }

    .video-section {
        margin: 100px 16px 50px 16px;
    }
}

.title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 700;
}

.sub-title {
    font-weight: 400;
    font-size: 16px;
    line-height: 34px;
    text-align: center;
    max-width: 230px;
}

.description-text {
    margin: 30px 0;
    text-wrap: pretty;
    font-weight: 400;
    line-height: 34px;
}

.content {
    margin-bottom: 0;
}

@media (min-width: 767px) {
    .content {
        margin-bottom: 60px;
    }

    .sub-title {
        font-size: 24px;
        text-align: start;
        max-width: 100%;
    }

    .mr-left {
        margin-left: 15px;
    }

    .mr-right {
        margin-right: 15px;
    }
}

.app-section {
    padding: 30px 16px;
    background-color: var(--turquoise-transperent-color);
    border-radius: 0;
}

.picture {
    display: flex;
    justify-content: center;
}

.picture img {
    width: 90%;
}

.store-buttons {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.download {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.store-icon {
    height: 68px;
    margin-bottom: 20px;
}

.google-icon {
    margin-top: 20px;
}

.qr-code img {
    margin-top: 20px;
}

@media (min-width: 767px) {
    .app-section {
        padding: 30px 0 30px 40px;
        border-radius: 20px;
    }

    .app-wrapper {
        display: flex;
        flex-direction: row-reverse;
    }

    .picture {
        flex-basis: 100%;
        display: block;
    }

    .picture img {
        max-width: 100%;
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .promo {
        flex-basis: 100%;
    }

    .store-buttons {
        flex-direction: row;
        align-items: baseline;
    }

    .store-icon {
        margin-bottom: 30px;
    }

    .download {
        align-items: baseline;
        margin-right: 10px;
        min-width: 258px;
    }

    .google-icon {
        margin-top: 15px;
    }

    .nowrap {
        white-space: nowrap;
    }

    .qr-code {
        max-width: 209px;
    }

    .qr-code img {
        margin-top: 43px;
    }
}

@media (min-width: 1024px) {
    .download {
        margin-right: 40px;
        max-width: 258px;
    }
}

.desktop-section {
    background-color: var(--turquoise-color-white);
    padding: 30px 16px 78px 16px;
    margin-top: 0;
    border-radius: 0;
}

.desktop-wrapper {
    display: flex;
    flex-direction: column;
}

.go-to-link {
    display: block;
    background-color: var(--turquoise-color);
    color: var(--white-color);
    text-decoration: none;
    padding: 16px 40px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

@media (min-width: 767px) {
    .desktop-section {
        border-radius: 20px;
        margin-top: 50px;
        padding: 30px 30px 78px 30px;
    }

    .desktop-wrapper {
        flex-direction: row;
    }

    .go-to-link {
        width: 50%;
    }

    .title {
        font-size: 40px;
    }

    .description-text {
        margin-top: 0;
    }
}

.twiin-section {
    background-color: var(--turquoise-transperent-color);
    padding: 30px 16px;
    border-radius: 0;
}

.twiin-wrapper {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.twiin-app-column {
    min-width: 0;
}

.twiin-app-column .title {
    margin-bottom: 24px;
    text-align: left;
}

.twiin-app-column .app-wrapper {
    gap: 24px;
}

.twiin-app-column .app-download-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(28px, 4vw, 46px);
}

.twiin-app-column .app-feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.twiin-app-column .app-description {
    min-width: 0;
}

.twiin-app-column .app-description .description-text {
    margin: 0;
}

.twiin-app-column .app-description {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.twiin-app-column .app-description .description-text {
    line-height: 1.55;
}

.twiin-app-column .app-lead {
    font-size: 18px;
}

.twiin-app-column .app-list-title {
    margin-top: 4px;
}

.twiin-app-column .app-benefits-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.twiin-app-column .app-benefits-list li {
    position: relative;
    padding-left: 28px;
    line-height: 1.45;
}

.twiin-app-column .app-benefits-list li::before {
    content: "\2713";
    position: absolute;
    top: 0;
    left: 0;
    color: var(--turquoise-color);
    font-weight: 700;
}

.twiin-app-column .app-final {
    margin-top: 4px;
}

.twiin-app-column .mr-right {
    margin-right: 0;
}

.twiin-app-column .picture {
    align-items: center;
}

.twiin-app-column .picture img {
    width: min(100%, 260px);
}

.twiin-app-column .store-buttons,
.twiin-app-column .app-access {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 16px;
    border: 1px solid rgba(45, 183, 188, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 12px 28px rgba(45, 183, 188, 0.08);
}

.twiin-app-column .app-access {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: clamp(24px, 3vw, 36px);
    width: 100%;
    max-width: 320px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.twiin-app-column .download,
.twiin-app-column .app-store-badges {
    align-items: center;
    gap: clamp(12px, 2vw, 18px);
    min-width: 0;
    margin-right: 0;
}

.twiin-app-column .sub-title {
    font-size: 16px;
    line-height: 1.25;
    margin-bottom: 0;
}

.twiin-app-column .store-icon {
    height: 56px;
    margin: 0;
}

.twiin-app-column .google-icon {
    margin-top: 0;
}

.twiin-app-column .qr-code {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 190px;
}

.twiin-app-column .app-qr {
    gap: 10px;
}

.twiin-app-column .qr-code img {
    width: 156px;
    margin-top: 0;
}

.twiin-app-column .qr-caption {
    color: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    text-align: center;
}

.video-feature-section {
    padding: 30px 16px;
}

.video-feature-wrapper {
    width: 100%;
}

.video-feature-section .video-section {
    margin: 0;
    min-height: 240px;
}

.twiin-title {
    color: inherit;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.twiin-text {
    color: inherit;
    font-weight: 400;
    line-height: 30px;
    text-wrap: pretty;
}

.twiin-content {
    position: relative;
    z-index: 0;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.twiin-content::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    width: min(112%, 420px);
    height: 76%;
    border-radius: 28px;
    background: rgba(45, 183, 188, 0.2);
    filter: blur(34px);
    opacity: 0.55;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.twiin-button {
    box-sizing: border-box;
    margin-top: 0;
    width: 100%;
}

.twiin-help-copy {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 4px;
}

.twiin-help-copy .twiin-title {
    margin-bottom: 0;
}

.twiin-content .twiin-card {
    margin-top: 0;
}

.twiin-card {
    background-color: var(--white-color);
    border: 1px solid rgba(0, 158, 148, 0.16);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(0, 158, 148, 0.12);
    box-sizing: border-box;
    padding: 24px;
}

.twiin-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.twiin-avatar {
    display: flex;
    flex: 0 0 64px;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background-color: var(--turquoise-color-white);
    border-radius: 50%;
    color: var(--turquoise-color);
    font-size: 30px;
    font-weight: 700;
}

.twiin-card-title {
    color: var(--dark-blue-color);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.twiin-card-subtitle {
    color: var(--turquoise-color);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    margin-top: 4px;
}

.twiin-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.twiin-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--dark-blue-color);
    font-size: 16px;
    line-height: 24px;
}

.twiin-list span {
    display: flex;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: var(--turquoise-transperent-color);
    border-radius: 50%;
    color: var(--turquoise-color);
    font-size: 14px;
    font-weight: 700;
}

@media (min-width: 767px) {
    .twiin-section {
        margin-top: 50px;
        padding: 46px 40px;
        border-radius: 20px;
    }

    .twiin-wrapper {
        display: grid;
        grid-template-columns: minmax(0, 7fr) minmax(280px, 3fr);
        align-items: stretch;
        gap: 30px;
    }

    .twiin-app-column .app-wrapper {
        display: grid;
        grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
        align-items: center;
    }

    .twiin-app-column .app-feature-grid {
        grid-template-columns: minmax(210px, 270px) minmax(0, 1fr);
        align-items: center;
        gap: 26px;
    }

    .twiin-app-column .app-download-panel {
        justify-content: center;
        min-height: 100%;
    }

    .twiin-app-column .picture {
        display: flex;
        justify-content: center;
    }

    .twiin-app-column .picture img {
        width: 100%;
        max-height: 320px;
    }

    .twiin-app-column .store-buttons,
    .twiin-app-column .app-access {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .video-feature-section {
        padding: 40px 0 30px;
    }

    .video-feature-section .video-section {
        min-height: 420px;
    }

    .twiin-title {
        font-size: 32px;
    }

    .twiin-button {
        width: 100%;
    }

    .twiin-card {
        margin-top: 24px;
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .twiin-wrapper {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .twiin-app-column,
    .twiin-app-column .app-feature-grid,
    .twiin-app-column .app-download-panel,
    .twiin-app-column .app-access,
    .twiin-app-column .app-description,
    .twiin-content {
        display: contents;
    }

    .twiin-content::before,
    .twiin-app-column .app-qr {
        display: none;
    }

    .twiin-app-column .title {
        order: 1;
        margin-bottom: 4px;
    }

    .twiin-app-column .app-intro {
        order: 2;
    }

    .twiin-app-column .app-store-badges {
        order: 3;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
        margin: 4px 0 8px;
    }

    .twiin-app-column .app-store-badges a {
        display: inline-flex;
        min-height: 56px;
    }

    .twiin-app-column .store-icon {
        height: 56px;
    }

    .twiin-app-column .picture {
        order: 4;
        display: flex;
        justify-content: center;
        margin: 4px 0;
    }

    .twiin-app-column .picture img {
        width: min(100%, 240px);
    }

    .twiin-app-column .app-list-title,
    .twiin-app-column .app-benefits-list {
        order: 5;
    }

    .twiin-card {
        order: 6;
        margin-top: 8px;
    }

    .twiin-button {
        order: 7;
        min-height: 56px;
    }

    .twiin-help-copy {
        order: 8;
    }

    .twiin-app-column .app-detail {
        order: 9;
    }
}

@media (max-width: 640px) {
    .header-inner {
        align-items: stretch;
        flex-direction: column;
        width: min(100% - 32px, 1200px);
        min-height: 68px;
        gap: 10px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .brand-group {
        justify-content: space-between;
        gap: 12px;
        width: 100%;
    }

    .logo {
        width: clamp(98px, 31vw, 124px);
    }

    .twiin-header-logo {
        width: clamp(78px, 24vw, 96px);
    }

    .help {
        justify-content: flex-end;
        gap: 8px;
        width: 100%;
    }

    .language-switch {
        flex: 0 0 auto;
        min-width: 44px;
        min-height: 38px;
        padding: 8px 10px;
    }
}

@media (max-width: 560px) {
    .header-inner {
        gap: 10px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .brand-group {
        gap: 12px;
    }

    .logo {
        width: clamp(98px, 31vw, 124px);
        height: auto;
    }

    .twiin-header-logo {
        width: clamp(78px, 24vw, 96px);
    }

    .help-link {
        margin-right: 0;
    }

    .twiin-app-column .store-buttons,
    .twiin-app-column .app-access {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .twiin-app-column .qr-code {
        align-items: center;
        max-width: none;
    }

    .twiin-app-column .app-store-badges {
        align-items: center;
    }

    .twiin-app-column .app-download-panel {
        gap: 26px;
    }

    .twiin-app-column .app-access {
        display: contents;
    }
}

.twiin-avatar {
    width: 40px;
    height: 40px;
    min-width: 70px;
    min-height: 70px;
    max-width: 96px;
    max-height: 96px;

    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--turquoise-color);
    background-color: var(--turquoise-color-white);

    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.twiin-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
