/* ══════════════════════════════════════════════════
   Mortgage Lending — Page Styles
   Color theme: Deep Blue (#0055b8) → Teal (#00b4d8)
   ══════════════════════════════════════════════════ */

/* ── Hero Layout ────────────────────────────────── */
.ml-hero {
    position: relative;
    padding: 160px 0 100px;
    background: var(--bg-primary);
    overflow: hidden;
}

.ml-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    animation: gridDrift 20s linear infinite;
}

.ml-hero::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -200px;
    width: 900px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(0, 85, 184, 0.08) 0%, rgba(0, 180, 216, 0.04) 40%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    animation: glowPulse 6s ease-in-out infinite alternate;
}

@keyframes gridDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

@keyframes glowPulse {
    0% { opacity: 0.6; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.06); }
}

.ml-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.ml-hero-text {
    animation: fadeSlideUp 0.8s ease-out both;
}

.ml-hero-overline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: 980px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(0, 85, 184, 0.08);
    color: #0055b8;
    margin-bottom: 24px;
}

.ml-hero-text .headline-hero {
    margin-bottom: 20px;
}

.ml-gradient {
    background: linear-gradient(135deg, #0055b8, #00b4d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ml-hero-text .subhead {
    margin-bottom: 36px;
    max-width: 480px;
}

.ml-hero-trust {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-tertiary);
}

.ml-hero-trust-dots {
    display: flex;
    gap: 4px;
}

.ml-hero-trust-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00b4d8;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Phone Mockup ───────────────────────────────── */
.ml-phone-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    animation: fadeSlideUp 0.8s 0.3s ease-out both;
}

.ml-phone {
    position: relative;
    width: 290px;
    background: #111;
    border-radius: 44px;
    padding: 12px;
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.18),
        0 16px 40px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    animation: phoneFloat 6s ease-in-out infinite;
    z-index: 2;
}

.ml-phone::before {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 60px;
    background: radial-gradient(ellipse, rgba(0, 85, 184, 0.12), transparent 70%);
    filter: blur(16px);
    z-index: -1;
}

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.ml-screen {
    background: var(--bg-section);
    border-radius: 34px;
    overflow: hidden;
}

.ml-screen-header {
    padding: 12px 16px 10px;
    text-align: center;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ml-screen-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0055b8, #00b4d8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    flex-shrink: 0;
}

.ml-screen-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.ml-chat {
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 260px;
}

.ml-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 13px;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(8px) scale(0.96);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ml-msg.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.ml-msg-ai {
    align-self: flex-start;
    background: #e9e9eb;
    color: #000;
    border-bottom-left-radius: 4px;
}

.ml-msg-user {
    align-self: flex-end;
    background: #0055b8;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.ml-typing {
    align-self: flex-start;
    display: flex;
    gap: 5px;
    padding: 12px 16px;
    background: #e9e9eb;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    opacity: 0;
    transition: opacity 0.25s;
}

.ml-typing.visible { opacity: 1; }

.ml-typing-dot {
    width: 7px;
    height: 7px;
    background: #86868b;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite;
}

.ml-typing-dot:nth-child(2) { animation-delay: 0.15s; }
.ml-typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
}

.ml-screen-input {
    padding: 10px 12px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ml-screen-input-field {
    flex: 1;
    height: 32px;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.ml-screen-input-send {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0055b8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ml-screen-input-send svg {
    width: 14px;
    height: 14px;
    fill: #fff;
}

/* ── Consultation Booked Notification ──────────── */
.ml-notif {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: #fff;
    padding: 12px 20px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.5s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 3;
}

.ml-notif.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.ml-notif-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #00b4d8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ml-notif-icon svg {
    width: 14px;
    height: 14px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.5;
}

/* ── Floating Badges ────────────────────────────── */
.ml-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.03);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s, transform 0.5s;
    z-index: 3;
}

.ml-badge.visible {
    opacity: 1;
    transform: translateY(0);
}

.ml-badge-1 {
    top: 12%;
    right: -60px;
    animation: badgeFloat1 4s ease-in-out infinite alternate;
    animation-play-state: paused;
}

.ml-badge-2 {
    bottom: 35%;
    left: -70px;
    animation: badgeFloat2 4.5s ease-in-out infinite alternate;
    animation-play-state: paused;
}

.ml-badge-3 {
    bottom: 12%;
    right: -50px;
    animation: badgeFloat3 3.8s ease-in-out infinite alternate;
    animation-play-state: paused;
}

.ml-badge.visible { animation-play-state: running; }

.ml-badge-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ml-badge-icon svg {
    width: 14px;
    height: 14px;
}

@keyframes badgeFloat1 { 0% { transform: translateY(0); } 100% { transform: translateY(-8px); } }
@keyframes badgeFloat2 { 0% { transform: translateY(0); } 100% { transform: translateY(-6px); } }
@keyframes badgeFloat3 { 0% { transform: translateY(0); } 100% { transform: translateY(-7px); } }

/* ── Section Spacing ───────────────────────────── */
.ml-process,
.ml-benefits,
.ml-related,
.ml-rate-monitor { padding: 100px 0; }

/* ── Process Steps ──────────────────────────────── */
.ml-process { text-align: center; }
.ml-process .headline-section { margin-bottom: 12px; }
.ml-process .subhead { margin: 0 auto 56px; max-width: 500px; }

.ml-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 960px;
    margin: 0 auto;
}

.ml-step {
    text-align: center;
    padding: 0 16px;
}

.ml-step-num {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(0, 85, 184, 0.08);
    color: #0055b8;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.ml-step:hover .ml-step-num {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 85, 184, 0.15);
}

.ml-step .headline-card {
    margin-bottom: 10px;
    font-size: 20px;
}

.ml-step .body-text {
    font-size: 15px;
}

/* ── Rate Monitor Section (unique to mortgage) ── */
.ml-rate-monitor {
    text-align: center;
    background: var(--bg-section);
}

.ml-rate-monitor .headline-section { margin-bottom: 12px; }
.ml-rate-monitor .subhead { margin: 0 auto 48px; max-width: 540px; }

.ml-rate-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
}

.ml-rate-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px 28px;
    text-align: center;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.ml-rate-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

/* ── Rate Card Animated Visuals ── */
.ml-rate-card-visual {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 14px;
    background: rgba(0, 85, 184, 0.02);
    transition: background 0.3s ease;
    overflow: hidden;
}

.ml-rate-card:hover .ml-rate-card-visual {
    background: rgba(0, 85, 184, 0.04);
}

.ml-rate-card-visual svg {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ml-rate-card:hover .ml-rate-card-visual svg {
    transform: scale(1.06);
}

/* Entrance animation: cards start hidden */
.ml-rate-anim {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ml-rate-anim.visible {
    opacity: 1;
    transform: translateY(0);
}

.ml-rate-anim:nth-child(2) { transition-delay: 0.15s; }
.ml-rate-anim:nth-child(3) { transition-delay: 0.3s; }

/* ── Card 1: Rate chart animations ── */

/* Pulse on the active data point */
.ml-rc-pulse {
    opacity: 0.3;
    animation: mlRcPulse 2.5s ease-in-out infinite;
}

.ml-rc-pulse.ml-rc-pulse-2 {
    opacity: 0.15;
    animation: mlRcPulse 2.5s 0.5s ease-in-out infinite;
}

@keyframes mlRcPulse {
    0%, 100% { opacity: 0.15; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.15); }
}

/* Rate dots gently pulse */
.ml-rc-dot {
    animation: mlRcDotPulse 3s ease-in-out infinite;
}

.ml-rc-dot:nth-of-type(2) {
    animation-delay: 0.4s;
}

@keyframes mlRcDotPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* Rate drop arrow bounce */
.ml-rc-arrow {
    animation: mlRcArrowBounce 2s ease-in-out infinite;
}

@keyframes mlRcArrowBounce {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(3px); opacity: 1; }
}

/* Badge subtle float */
.ml-rc-badge {
    animation: mlRcBadgeFloat 3s ease-in-out infinite;
}

@keyframes mlRcBadgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

/* Hover: speed up animations */
.ml-rate-card:hover .ml-rc-pulse { animation-duration: 1.5s; }
.ml-rate-card:hover .ml-rc-arrow { animation-duration: 1s; }
.ml-rate-card:hover .ml-rc-dot { animation-duration: 1.5s; }

/* ── Card 2: House animations ── */

/* Pulse rings breathe */
.ml-rc-ring {
    opacity: 0.08;
    animation: mlRcRingPulse 4s ease-in-out infinite;
}

.ml-rc-ring.ml-rc-ring-2 {
    opacity: 0.06;
    animation: mlRcRingPulse 4s 1s ease-in-out infinite;
}

@keyframes mlRcRingPulse {
    0%, 100% { opacity: 0.06; transform: scale(1); }
    50% { opacity: 0.14; transform: scale(1.04); }
}

/* Floating elements */
.ml-rc-float-1 {
    animation: mlRcFloat1 3.5s ease-in-out infinite;
}

.ml-rc-float-2 {
    animation: mlRcFloat2 4s ease-in-out infinite;
}

.ml-rc-float-3 {
    animation: mlRcFloat3 3s ease-in-out infinite;
}

@keyframes mlRcFloat1 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes mlRcFloat2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes mlRcFloat3 {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-3px) scale(1.1); }
}

/* Hover: rings expand, floats speed up */
.ml-rate-card:hover .ml-rc-ring { animation-duration: 2s; }
.ml-rate-card:hover .ml-rc-float-1 { animation-duration: 2s; }
.ml-rate-card:hover .ml-rc-float-2 { animation-duration: 2.5s; }

/* ── Card 3: Re-engagement animations ── */

/* Spinning refresh arrows */
.ml-rc-spin {
    animation: mlRcSpin 12s linear infinite;
    transform-origin: 90px 65px;
}

@keyframes mlRcSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Clock minute hand */
.ml-rc-clock {
    transform-origin: 90px 65px;
    animation: mlRcClockSpin 8s linear infinite;
}

@keyframes mlRcClockSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hover: speed up rotation */
.ml-rate-card:hover .ml-rc-spin { animation-duration: 4s; }
.ml-rate-card:hover .ml-rc-clock { animation-duration: 3s; }

.ml-rate-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.ml-rate-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.ml-rate-card-tag {
    display: inline-block;
    margin-top: 14px;
    padding: 4px 12px;
    border-radius: 980px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Benefits Bento Grid ── */
.ml-benefits { text-align: center; }
.ml-benefits .headline-section { margin-bottom: 12px; }
.ml-benefits .subhead { margin: 0 auto 56px; max-width: 520px; }

.ml-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(220px, auto);
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.ml-bento-grid .bento-card:nth-child(1) { grid-column: 1 / 3; }
.ml-bento-grid .bento-card:nth-child(2) { grid-column: 3; grid-row: 1 / 3; }
.ml-bento-grid .bento-card:nth-child(6) { grid-column: 2 / 4; }

.ml-bento-grid .bento-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.ml-bento-grid .bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.ml-bento-grid .bento-card-graphic svg {
    transition: transform 0.4s ease;
}

.ml-bento-grid .bento-card:hover .bento-card-graphic svg {
    transform: scale(1.05);
}

/* Pulse animation for accent elements */
@keyframes mlIconPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

.ml-bento-grid .bento-card-graphic .pulse-ring {
    animation: mlIconPulse 3s ease-in-out infinite;
}

/* Floating animation for integration icons */
@keyframes mlIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.ml-bento-grid .bento-app-icon:nth-child(1) { animation: mlIconFloat 3s ease-in-out infinite; }
.ml-bento-grid .bento-app-icon:nth-child(2) { animation: mlIconFloat 3s 0.3s ease-in-out infinite; }
.ml-bento-grid .bento-app-icon:nth-child(3) { animation: mlIconFloat 3s 0.6s ease-in-out infinite; }
.ml-bento-grid .bento-app-icon:nth-child(4) { animation: mlIconFloat 3s 0.9s ease-in-out infinite; }

/* Spin animation for clock hand */
@keyframes mlClockSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ml-clock-hand {
    transform-origin: 80px 50px;
    animation: mlClockSpin 8s linear infinite;
}

/* ── Stats Banner Override ── */
.stats {
    background: var(--bg-card);
}

/* ── Related Industries ── */
.ml-related { text-align: center; }
.ml-related .headline-section { margin-bottom: 12px; }
.ml-related .subhead { margin: 0 auto 48px; max-width: 480px; }

.ml-related .feature-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.ml-related .feature-card .ind-card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 500;
    color: #0055b8;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.3s, transform 0.3s;
}

.ml-related .feature-card:hover .ind-card-arrow {
    opacity: 1;
    transform: translateX(0);
}

.ml-related .ind-icon-graphic {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 14px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ml-related .ind-icon-graphic-blue  { background: rgba(0, 113, 227, 0.04); }
.ml-related .ind-icon-graphic-teal  { background: rgba(0, 180, 216, 0.04); }
.ml-related .ind-icon-graphic-green { background: rgba(29, 185, 84, 0.04); }

.ml-related .feature-card:hover .ind-icon-graphic {
    transform: translateY(-4px);
}

.ml-related .ind-icon-graphic svg {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ml-related .feature-card:hover .ind-icon-graphic svg {
    transform: scale(1.08);
}

/* ── Device Morph Dashboard Section ───────────── */
.ml-device-morph {
    position: relative;
    height: 300vh;
    background: var(--bg-primary);
}

.ml-device-morph-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ml-device-frame {
    position: relative;
    width: 80%;
    max-width: 1000px;
    height: 56vh;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
}

/* Override app-demo styles within Device Morph */
.ml-device-frame .app-demo-titlebar {
    flex-shrink: 0;
}

.ml-device-frame .app-demo-body {
    flex: 1;
    height: auto;
}

.ml-device-dark {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    pointer-events: none;
    z-index: 110;
}

.ml-device-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    z-index: 111;
    opacity: 0;
    transform: translateY(24px);
}

.ml-device-content .headline-section {
    color: #fff;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.ml-device-content .subhead {
    color: rgba(255, 255, 255, 0.85);
    max-width: 580px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 960px) {
    .ml-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .ml-hero-text .subhead {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .ml-hero-text .hero-actions {
        justify-content: center;
    }

    .ml-hero-trust {
        justify-content: center;
    }

    .ml-badge { display: none; }

    .ml-phone { width: 260px; }

    .ml-device-frame {
        width: 90%;
    }

    .ml-bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(200px, auto);
    }
    .ml-bento-grid .bento-card:nth-child(1) { grid-column: 1 / 3; }
    .ml-bento-grid .bento-card:nth-child(2) { grid-column: 1; grid-row: auto; }
    .ml-bento-grid .bento-card:nth-child(6) { grid-column: 1 / 3; }

    .ml-rate-cards {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .ml-rate-anim {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 768px) {
    .ml-hero { padding: 140px 0 60px; }

    .ml-process,
    .ml-benefits,
    .ml-related,
    .ml-rate-monitor { padding: 80px 0; }

    .ml-phone { width: 240px; border-radius: 36px; padding: 10px; }
    .ml-screen { border-radius: 28px; }
    .ml-chat { min-height: 220px; padding: 12px 10px; }
    .ml-msg { font-size: 12px; }

    .ml-steps {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 400px;
    }

    .ml-device-morph { height: 250vh; }
    .ml-device-frame {
        width: 94%;
        height: 40vh;
    }
    .ml-device-frame .app-demo-sidebar { display: none; }
    .ml-device-frame .app-demo-body { grid-template-columns: 1fr; }
    .ml-device-content { padding: 24px; }
    .ml-device-content .headline-section { font-size: 28px; }
    .ml-device-content .subhead { font-size: 16px; }

    .ml-bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(180px, auto);
    }
    .ml-bento-grid .bento-card:nth-child(1),
    .ml-bento-grid .bento-card:nth-child(2),
    .ml-bento-grid .bento-card:nth-child(6) { grid-column: 1; grid-row: auto; }

    .ml-rate-cards {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .ml-rate-card-visual {
        height: 120px;
    }

    .ml-rate-card-visual svg {
        width: 150px;
        height: auto;
    }

    .ml-rate-anim {
        opacity: 1 !important;
        transform: none !important;
    }
}
