/* ---------- THEME TOKENS ---------- */
:root {
    /* Atoms */
    /* --background: #f9f8f9; */
    --background: #F4F2F1;
    --surface: #ffffff;
    --surface-elevated: #ffffff;
    --text-primary: #282a30;
    --text-secondary: #3c4149;
    --text-tertiary: #6f6e77;
    --text-quaternary: #86848d;
    --text-on-surface: #282a30;
    --text-on-primary: #f7f8f8;
    --button-surface: #282a30;
    --button-surface-hover: #3c4149;
    --button-text: #f7f8f8;
    --primary: #7081ff;
    --primary-hover: #7e8cf4;
    --primary-tint: #f5f6fd;
    --accent: #7170ff;
    --accent-hover: #8989f0;
    --border: #DED8D3;
    --border-card: #e9e8ea;
    --border-subtle: #f1f5f9;

    /* Shadow */
    --shadow-tiny: 0px 1px 1px 0px rgba(0, 0, 0, .08);
    --shadow-low: 0px 1px 4px -1px rgba(0, 0, 0, .08);
    --shadow-medium: 0px 4px 12px rgba(0, 0, 0, .08);
    --shadow-high: 0px 8px 24px rgba(0, 0, 0, .06);

    /* Breakpoints */
    --breakpoint-desktop: 1248px;
    --breakpoint-tablet: 991px;
    --breakpoint-mobile-landscape: 767px;
    --breakpoint-mobile-portrait: 478px;

    /* Content constraints */
    --content-max-width: 1200px;
    --content-max-width-tight: 960px;

    /* Theme change mask */
    --transition-mask-url: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40"><defs><filter id="blur"><feGaussianBlur stdDeviation="2"/></filter></defs><circle cx="40" cy="0" r="18" fill="white" filter="url(%23blur)"/></svg>');

    /* Button & Icons */
    --ghost-icon-hover: rgb(from var(--text-primary) r g b / 4%);

    /* Navbar */
    --surface-frosted: rgb(from var(--surface-elevated) r g b / 88%);
}

:root[data-theme="dark"] {
    /* Atoms */
    --background: #08090a;
    --surface: #141516;
    --surface-elevated: #191a1b;
    --text-primary: #f7f8f8;
    --text-secondary: #d0d6e0;
    --text-tertiary: #8a8f98;
    --text-quaternary: #62666d;
    --text-on-surface: #f7f8f8;
    --text-on-primary: #f7f8f8;
    --button-surface: #f7f8f8;
    --button-surface-hover: #ffffff;
    --button-text: #282a30;
    --primary: #7081ff;
    --primary-hover: #7e8cf4;
    --primary-tint: #07091A;
    --accent: #7170ff;
    --accent-hover: #8989f0;
    --border: #334155;
    --border-card: #1F1F37;
    --border-subtle: #1e293b;

    /* Button & Icons */
    --ghost-icon-hover: rgb(from var(--text-primary) r g b / 8%);
}

/* ---------- VIEW TRANSITIONS ---------- */
:root {
    view-transition-name: root;
}

::view-transition-group(root) {
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

::view-transition-new(root) {
    mask: var(--transition-mask-url) top right / 0 no-repeat;
    mask-origin: content-box;
    animation: circular-reveal 1s;
    transform-origin: top right;
}

::view-transition-old(root) {
    animation: circular-reveal 1s;
    transform-origin: top right;
    z-index: -1;
}

@keyframes circular-reveal {
    to {
        mask-size: 350vmax;
    }
}

/* ---------- BASE LAYOUT ---------- */
* {
    box-sizing: border-box;
}

body {
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    line-height: 16px;
    background: var(--background);
    color: var(--text-primary);
    min-height: 100vh;
    margin: 0;
    /* Disable the usual background-color transition so View Transition owns it */
    transition: background-color 0s;
}

/* ---------- TEXT STYLING ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    margin: 0;
}

h1 {
    font-size: 64px;
    line-height: 72px;
}

h2 {
    font-size: 48px;
    line-height: 56px;
}

h3 {
    font-size: 40px;
    line-height: 48px;
}

h4 {
    font-size: 32px;
    line-height: 40px;
}

h5 {
    font-size: 24px;
    line-height: 32px;
}

h6 {
    font-size: 20px;
    line-height: 24px;
}

p {
    font-family: 'DM Sans', sans-serif;
    margin: 0;
    color: var(--text-secondary);
}

a {
    font-family: 'DM Sans', sans-serif;
    color: var(--primary);
    text-decoration: none;
    transition: color 300ms ease;
}

a:hover {
    color: var(--primary-hover);
}

@media screen and (max-width: 991px) {
    h1 {
        font-size: 48px;
        line-height: 56px;
    }

    h2 {
        font-size: 40px;
        line-height: 48px;
    }

    h3 {
        font-size: 32px;
        line-height: 40px;
    }

    h4 {
        font-size: 24px;
        line-height: 32px;
    }

    h5 {
        font-size: 20px;
        line-height: 24px;
    }

    h6 {
        font-size: 18px;
        line-height: 24px;
    }
}

@media screen and (max-width: 767px) {
    h1 {
        font-size: 40px;
        line-height: 48px;
    }

    h2 {
        font-size: 32px;
        line-height: 40px;
    }

    h3 {
        font-size: 24px;
        line-height: 32px;
    }

    h4 {
        font-size: 20px;
        line-height: 24px;
    }

    h5 {
        font-size: 18px;
        line-height: 24px;
    }

    h6 {
        font-size: 16px;
        line-height: 20px;
    }
}

/* ---------- SECTIONS ---------- */

section {
    padding: 96px 0;
    overflow: hidden;
}

.container {
    position: relative;
    margin: 0 auto;
    padding: 0 24px;
    max-width: var(--content-max-width);
}

.section-header {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    gap: 16px;
    margin-bottom: 32px;
}

.section-title {
    color: var(--text-primary)
}

.section-subtitle {
    max-width: 640px;
    color: var(--text-tertiary);
    font-size: 16px;
    line-height: 20px;
}

@media screen and (max-width: 767px) {
    section {
        padding: 80px 0;
    }
}

/* ---------- BUTTONS ---------- */
.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    min-height: 48px;
    font-size: 14px;
    line-height: 16px;
    cursor: pointer;
    background-color: var(--button-surface);
    color: var(--button-text);
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: all 250ms ease;
}

.button:hover {
    background-color: var(--button-surface-hover);
    box-shadow: var(--shadow-low);
    color: var(--button-text);
}

.button--large {
    font-size: 16px;
    line-height: 20px;
    min-height: 56px;
    padding: 8px 32px;
}

.button--outline {
    background-color: var(--background);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.button--outline:hover {
    background-color: var(--surface);
    color: var(--text-on-surface);
}

.button--primary {
    background-color: var(--primary);
    color: var(--text-on-primary);
}

.button--primary:hover {
    background-color: var(--primary-hover);
    color: var(--text-on-primary);
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-on-surface);
    cursor: pointer;
    transition: all 300ms ease;
}

.icon-button:hover {
    background-color: var(--background);
}

.icon-button--ghost {
    background-color: transparent;
    border: 1px solid transparent;
}

.icon-button--ghost:hover {
    background-color: var(--ghost-icon-hover);

}

/* ---------- BADGES ---------- */

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    font-size: 14px;
    line-height: 16px;
    padding: 4px 12px;
    border-radius: 48px;
    font-weight: 500;
    color: var(--text-primary);
    background-color: rgb(from var(--button-surface) r g b / 4%);
    border: 1px solid var(--border);
}

.badge--primary {
    color: var(--primary);
    background-color: rgb(from var(--primary) r g b / 8%);
}

/* ---------- NAVIGATION ---------- */
.navbar {
    background: transparent;
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 100%;
    padding: 16px 24px;
    z-index: 999;
}

.nav-container {
    position: relative;
    width: 100%;
    max-width: var(--content-max-width);
    background-color: transparent;
    margin: 0 auto;
    padding: 0 12px 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    transition: all 0.3s ease;
    border-radius: 16px;
    gap: 24px;
    z-index: 10;
}

.navbar.scrolled .nav-container {
    max-width: var(--content-max-width-tight);
    background: var(--surface-frosted);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    box-shadow: var(--shadow-high);
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-on-surface);
    text-decoration: none;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.logo:hover {
    color: var(--primary);
}

.logo-image {
    height: 24px;
    width: auto;
}

.nav-menu-options {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1 0 auto;
    padding: 0 16px;
}

.nav-menu-options a {
    color: var(--text-tertiary);
    text-decoration: none;
    font-weight: 500;
    transition: color 300ms ease;
    font-size: 14px;
}

.nav-menu-options a:hover {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Themeing & Icons */
.theme-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    display: none;
}

.theme-icon svg {
    width: 100%;
    height: 100%;
}

:root[data-theme="light"] .theme-icon--light {
    display: inline-block;
}

:root[data-theme="dark"] .theme-icon--dark {
    display: inline-block;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 4px;
    width: 40px;
    height: 40px;
    transition: all 0.4s ease;
}

.burger-line {
    width: 16px;
    height: 2px;
    border-radius: 1px;
    background: var(--text-primary);
    transition: all 0.4s ease;
}

.mobile-menu-toggle.active {
    transform: rotate(-180deg);
}

.mobile-menu-toggle.active .burger-line:first-child {
    transform: rotate(45deg) translate(2px, 2px);
}

.mobile-menu-toggle.active .burger-line:last-child {
    transform: rotate(-45deg) translate(2px, -2px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: translateX(100%);
    background: var(--surface-frosted);
    z-index: 5;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.mobile-menu-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 32px;
    padding: 48px 24px;
}

.mobile-menu-link {
    color: var(--text-on-surface);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    transition: color 0.2s;
}

.mobile-menu-link:hover {
    color: var(--primary);
}

.mobile-menu-cta {
    margin-top: 32px;
    font-size: 16px;
    padding: 12px 24px;
}

@media screen and (max-width: 991px) {
    .nav-menu-options {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-overlay {
        display: block;
    }
}

@media screen and (max-width: 767px) {
    .nav-cta {
        display: none;
    }
}

/* ---------- HERO SECTION ---------- */
.hero {
    position: relative;
    text-align: center;
    padding-top: 192px;
}

.hero-title {
    max-width: 640px;
    margin: 16px auto 0 auto;
}

.hero-subtitle {
    max-width: 640px;
    margin: 24px auto 40px;
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 24px;
}

.hero-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-pages-container {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: calc(var(--content-max-width-tight) - 48px);
    margin: 64px auto 0 auto;
    height: auto;
    padding-top: 108px;
}

.hero-page {
    position: relative;
    width: 100%;
    height: auto;
    min-width: 280px;
    min-height: 240px;
    border-radius: 12px;
    padding: 4px;
    opacity: 0.96;
    overflow: hidden;
    backdrop-filter: blur(24px);
    background: var(--surface-frosted);
    border: 1px solid var(--border-card);
    transition: transform 300ms ease, opacity 300ms ease;
}

.hero-page:hover {
    transform: translateY(-8px);
    opacity: 0.96;
}

.hero-page--first {
    z-index: 3;
}

.hero-page--second {
    position: absolute;
    z-index: 2;
    top: 52px;
    width: calc(100% - 80px);
    margin: 0 auto;
    opacity: 0.72;
}

.hero-page--third {
    position: absolute;
    z-index: 1;
    top: 0;
    width: calc(100% - 160px);
    min-width: 240px;
    margin: 0 auto;
    opacity: 0.56;
}

.hero-page-header {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    height: 64px;
    padding: 0 32px;
    border-radius: 8px;
    background-color: var(--background);
}

.hero-page-icon {
    width: 24px;
    height: 24px;
    margin-right: 16px;
}

.hero-page-icon--first {
    color: var(--primary);
}

.hero-page-icon--second {
    color: #FF7070;
}

.hero-page-icon--third {
    color: #B570FF;
}

.hero-illustration {
    width: 100%;
    height: auto;
    display: none;
}

:root[data-theme="light"] .hero-illustration--light {
    display: block;
}

:root[data-theme="dark"] .hero-illustration--dark {
    display: block;
}

@media screen and (max-width: 767px) {
    .hero {
        padding-top: 128px;
    }
}

/* ---------- HOW IT WORKS SECTION ---------- */

.step-cards-container {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: stretch;
    gap: 8px;
}

.step-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    flex: 1 0 33.33%;
    height: 100%;
    padding: 32px 24px;
    border-radius: 24px;
    border: 1px solid var(--border-card);
    background-color: var(--surface);
    transition: transform 300ms ease, box-shadow 300ms ease;
    min-height: 360px;
}

.step-title {
    font-size: 20px;
    line-height: 24px;
    color: var(--text-primary);
    width: 100%;
}

.step-icon {
    position: absolute;
    top: 32px;
    width: 200px;
    height: auto;
    color: var(--background);
    transition: color 300ms ease;
}

.step-card:hover .step-icon {
    color: var(--primary);
}

@media screen and (max-width: 991px) {
    .step-cards-container {
        flex-direction: column;
    }

    .step-card {
        flex: 1 0 auto;
        width: 100%;
    }
}

/* ---------- FAQ SECTION ---------- */

.faq-container {
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: start;
    gap: 48px;
}

.faq .section-header {
    width: 100%;
    max-width: 50%;
}

.faq-cta-button {
    margin-top: 16px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 50%;
    margin: 0 auto;
    gap: 1px;
}

.faq-item {
    background: var(--surface);
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:first-child {
    border-radius: 12px 12px 0 0;
}

.faq-item:last-child {
    border-radius: 0 0 12px 12px;
}

.faq-item:hover,
.faq-item.active {
    background: var(--surface-elevated);
}

.faq-question {
    width: 100%;
    padding: 24px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question span {
    flex: 1;
}

.faq-icon {
    flex-shrink: 0;
    color: var(--text-tertiary);
    transform: rotate(0deg);
    transition: transform 0.3s ease, color 0.2s ease;
}

.faq-question:hover .faq-icon {
    color: var(--primary);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 24px 24px;
}

.faq-answer p {
    margin-bottom: 32px;
    color: var(--text-tertiary);
    font-size: 14px;
    line-height: 20px;
}

@media screen and (max-width: 991px) {
    .faq-container {
        flex-direction: column;
        gap: 0px;
    }

    .faq-container .section-header,
    .faq-list {
        width: 100%;
        max-width: 100%;
    }
}

@media screen and (max-width: 767px) {
    .faq-question {
        padding: 20px;
        font-size: 14px;
        line-height: 20px;
    }

    .faq-item.active .faq-answer {
        padding: 0 20px 20px;
    }

    .faq-answer p {
        font-size: 13px;
        line-height: 18px;
    }
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--surface);
    padding: 80px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 48px;
}

.footer-main {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.footer-main .logo {
    width: fit-content;
}

.footer-cta {
    max-width: 400px;
}

.footer-cta-title {
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.footer-cta-subtitle {
    font-size: 16px;
    line-height: 24px;
    color: var(--text-tertiary);
    margin-bottom: 24px;
}

.footer-cta-button {
    min-width: 160px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-column-title {
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

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

.footer-link {
    font-size: 14px;
    line-height: 20px;
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.footer-separator {
    height: 1px;
    background: var(--border);
    margin-bottom: 32px;
}

.footer-copyright {
    text-align: center;
}

@media screen and (max-width: 991px) {
    .footer {
        padding: 64px 0 32px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media screen and (max-width: 767px) {
    .footer {
        padding: 48px 0 24px;
    }

    .footer-content {
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-main {
        text-align: center;
        align-items: center;
    }

    .footer-cta {
        max-width: 100%;
    }

    .footer-cta-title {
        font-size: 18px;
        line-height: 24px;
    }

    .footer-cta-subtitle {
        font-size: 14px;
        line-height: 20px;
    }

    .footer-bottom {
        flex-direction: column-reverse;
        align-items: center;
        gap: 16px;
    }
}

/* ---------- MODAL ---------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    background: var(--surface-elevated);
    box-shadow: var(--shadow-high);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    overflow-y: auto;
    transform: scale(0.9) translateY(24px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 20px 24px 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--ghost-icon-hover);
    color: var(--text-primary);
}

.modal-content {
    padding: 0 24px 24px;
}

.modal-state {
    transition: all 0.3s ease;
}

.modal-state--hidden {
    display: none;
}

.modal-title {
    font-size: 32px;
    line-height: 40px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 16px;
    line-height: 20px;
    color: var(--text-tertiary);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    line-height: 24px;
    color: var(--text-primary);
    background: var(--surface);
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(112, 129, 255, 0.1);
}

.form-input::placeholder {
    color: var(--text-quaternary);
}

.modal-submit-button {
    width: 100%;
    margin-bottom: 16px;
}

.modal-submit-button:hover {
    background: var(--button-surface-hover);
}

.modal-submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.modal-disclaimer {
    font-size: 14px;
    line-height: 20px;
    color: var(--text-tertiary);
    text-align: center;
    margin: 0;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-tint);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.success-icon svg {
    color: var(--primary);
    width: 24px;
    height: 24px;
}

/* Mobile responsive */
@media screen and (max-width: 767px) {
    .modal-overlay {
        padding: 16px;
    }

    .modal-container {
        max-width: 100%;
        border-radius: 12px;
    }

    .modal-header {
        padding: 16px 24px 0;
    }

    .modal-content {
        padding: 0 20px 20px;
    }

    .modal-title {
        font-size: 24px;
        line-height: 32px;
    }

    .modal-subtitle {
        font-size: 14px;
        line-height: 20px;
    }
}