/* FreeGo mobile site */

:root {
    --fg-ink: #092f2d;
    --fg-ink-soft: #265b56;
    --fg-muted: #687b77;
    --fg-paper: #ffffff;
    --fg-bg: #f7f5ed;
    --fg-mint: #72d6a4;
    --fg-lime: #e7f2c6;
    --fg-orange: #f28a46;
    --fg-gold: #f2c96d;
    --fg-line: rgba(9, 47, 45, 0.1);
    --fg-shadow: 0 16px 38px rgba(7, 43, 40, 0.1);
    --fg-radius: 22px;
    --font-main: 'Noto Sans TC', 'PingFang TC', sans-serif;
    --font-display: var(--font-main);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-main);
    color: var(--fg-ink);
    background: var(--fg-bg);
    line-height: 1.65;
    overflow-x: hidden;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 0%, rgba(114, 214, 164, 0.12), transparent 42%);
}

body.menu-open {
    overflow: hidden;
}

main,
.m-footer {
    position: relative;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

.m-wrap {
    width: min(100% - 28px, 640px);
    margin: 0 auto;
}

.m-nav {
    position: sticky;
    top: 10px;
    z-index: 80;
    width: min(100% - 20px, 640px);
    margin: 10px auto -4px;
    padding: 6px 6px 6px 18px;
    border: 1px solid rgba(9, 47, 45, 0.06);
    border-radius: 999px;
    color: var(--fg-ink);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 38px -22px rgba(9, 47, 45, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.m-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
}

.m-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.m-logo img {
    width: 80px;
    height: auto;
    display: block;
}

.m-menu-button {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    padding: 0;
    color: #fff;
    background: var(--fg-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px -8px rgba(9, 47, 45, 0.5);
    transition: background 0.2s ease, transform 0.2s ease;
}

.m-menu-button:active {
    transform: scale(0.94);
}

.m-menu-button-bars {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    width: 16px;
}

.m-menu-button-bars span {
    display: block;
    width: 100%;
    height: 1.6px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.22s ease, opacity 0.22s ease;
    transform-origin: center;
}

.m-menu-button-bars span:nth-child(2) {
    width: 70%;
    margin-left: auto;
}

.m-menu-button.active {
    background: #fff;
    color: var(--fg-ink);
    border: 1px solid rgba(9, 47, 45, 0.1);
}

.m-menu-button.active .m-menu-button-bars span {
    width: 100%;
}

.m-menu-button.active .m-menu-button-bars span:nth-child(1) {
    transform: translateY(3.3px) rotate(45deg);
}

.m-menu-button.active .m-menu-button-bars span:nth-child(2) {
    transform: translateY(-3.3px) rotate(-45deg);
}

/* ---------- 底部抽屉式菜单 ---------- */
.m-menu-panel {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    background: transparent;
    pointer-events: none;
    transition: background 0.28s ease;
}

.m-menu-panel.active {
    pointer-events: auto;
}

.m-menu-sheet {
    position: relative;
    width: 100%;
    max-height: 92vh;
    padding: 14px 22px calc(24px + env(safe-area-inset-bottom)) 22px;
    border-radius: 28px 28px 0 0;
    background: #f9f6ec;
    box-shadow: 0 -22px 60px rgba(9, 47, 45, 0.25);
    color: var(--fg-ink);
    transform: translateY(100%);
    transition: transform 0.34s cubic-bezier(0.2, 0.85, 0.25, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.m-menu-panel.active .m-menu-sheet {
    transform: translateY(0);
}

.m-menu-handle {
    display: block;
    width: 42px;
    height: 4px;
    margin: 0 auto 14px;
    border-radius: 999px;
    background: rgba(9, 47, 45, 0.18);
}

.m-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.m-menu-kicker {
    margin: 0;
    color: var(--fg-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.m-menu-close {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(9, 47, 45, 0.12);
    border-radius: 50%;
    color: var(--fg-ink);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.m-menu-close:active {
    transform: scale(0.92);
}

.m-menu-links {
    margin-top: 6px;
    display: grid;
    gap: 0;
}

.m-menu-link {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    padding: 0 4px;
    border-bottom: 1px solid rgba(9, 47, 45, 0.08);
    color: var(--fg-ink);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.01em;
    transition: transform 0.2s ease, color 0.2s ease;
}

.m-menu-link:active {
    transform: translateX(2px);
}

.m-menu-link-num {
    color: var(--fg-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.m-menu-link-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--fg-muted);
    background: rgba(9, 47, 45, 0.04);
    transition: color 0.2s ease, background 0.2s ease;
}

.m-menu-link.active {
    color: var(--fg-ink);
}

.m-menu-link.active .m-menu-link-arrow {
    color: var(--fg-ink);
    background: var(--fg-lime);
}

.m-menu-foot {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(9, 47, 45, 0.08);
    display: grid;
    gap: 10px;
}

.m-menu-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(9, 47, 45, 0.04);
    color: var(--fg-ink-soft);
    font-size: 14px;
    font-weight: 700;
}

.m-menu-chip svg {
    flex-shrink: 0;
    color: var(--fg-ink);
}

.m-menu-cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 22px;
    margin-top: 4px;
    border-radius: 18px;
    color: #fff;
    background: var(--fg-ink);
    font-size: 16px;
    font-weight: 900;
    box-shadow: 0 14px 28px -12px rgba(9, 47, 45, 0.6);
}

.m-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(9, 32, 30, 0.42);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.m-menu-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.m-hero {
    position: relative;
    width: min(100% - 20px, 660px);
    margin: 12px auto 0;
    min-height: 440px;
    border-radius: 32px;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 18px 44px rgba(6, 37, 34, 0.18);
    background:
        linear-gradient(180deg, rgba(9, 47, 45, 0.18) 0%, rgba(9, 47, 45, 0.76) 100%),
        var(--hero-image, url('../assets/images/banner.png')) center / cover no-repeat;
}

.m-hero.compact {
    min-height: 320px;
}

.m-hero.home {
    min-height: 540px;
    background:
    linear-gradient(180deg, rgba(9, 47, 45, 0.12) 0%, rgba(9, 47, 45, 0.78) 100%),
    url('../assets/images/hero-bg.png') center / cover no-repeat;
}

.m-hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 55%;
    background: linear-gradient(180deg, transparent, rgba(4, 29, 27, 0.82));
    z-index: -1;
}

.m-hero-content {
    min-height: inherit;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 122px 22px 30px;
}

.m-eyebrow {
    display: inline-flex;
    align-self: flex-start;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.m-hero h1 {
    margin: 14px 0 12px;
    color: #fff9e8;
    font-family: var(--font-display);
    font-size: 48px;
    line-height: 1.12;
    letter-spacing: 0;
    font-weight: 900;
    text-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.m-hero.compact h1 {
    font-size: 38px;
}

.m-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 16px;
    line-height: 1.75;
    max-width: 32em;
}

.m-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.m-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 19px;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    color: var(--fg-ink);
    background: var(--fg-lime);
    box-shadow: 0 12px 24px rgba(114, 214, 164, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.m-btn:active,
.m-submit:active,
.m-menu-button:active {
    transform: translateY(1px) scale(0.98);
}

.m-btn.orange {
    color: #fff;
    background: var(--fg-orange);
    box-shadow: 0 12px 24px rgba(242, 138, 70, 0.22);
}

.m-btn.ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.36);
    box-shadow: none;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.m-section {
    padding: 38px 0;
}

.m-section.tight {
    padding-top: 22px;
}

.m-section-head {
    margin-bottom: 18px;
}

.m-section-head h2 {
    position: relative;
    margin: 0 0 8px;
    padding-left: 13px;
    color: var(--fg-ink);
    font-size: 27px;
    line-height: 1.2;
    font-weight: 900;
}

.m-section-head h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.18em;
    width: 5px;
    height: 0.92em;
    border-radius: 999px;
    background: var(--fg-orange);
}

.m-section-head p {
    margin: 0;
    color: var(--fg-muted);
    font-size: 15px;
}

.m-grid {
    display: grid;
    gap: 13px;
}

.m-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.m-card {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border-radius: var(--fg-radius);
    background: var(--fg-paper);
    border: 1px solid var(--fg-line);
    box-shadow: 0 10px 24px rgba(9, 47, 45, 0.06);
}

.m-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--fg-mint);
}

.m-card:nth-child(3n + 2)::before {
    background: var(--fg-orange);
}

.m-card:nth-child(3n)::before {
    background: var(--fg-gold);
}

.m-card.mint {
    background: #fbfff6;
}

.m-card h3,
.m-card h4 {
    margin: 0 0 8px;
    color: var(--fg-ink);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

.m-card p,
.m-card li {
    margin: 0;
    color: #3f615d;
    font-size: 14px;
    line-height: 1.75;
}

.m-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 9px;
}

.m-card li {
    position: relative;
    padding-left: 14px;
}

.m-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.78em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--fg-orange);
}

.m-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.m-chip {
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.24);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.m-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.m-stat {
    min-height: 126px;
    padding: 18px;
    border-radius: 24px;
    background: #fffef9;
    border: 1px solid var(--fg-line);
    box-shadow: 0 10px 24px rgba(9, 47, 45, 0.06);
}

.m-stat strong {
    display: block;
    color: var(--fg-ink);
    font-size: 34px;
    line-height: 1;
    font-weight: 900;
    margin-bottom: 12px;
}

.m-stat span {
    color: #41645f;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 700;
}

.m-timeline {
    display: grid;
    gap: 12px;
}

.m-step {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 13px;
    align-items: start;
    padding: 18px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--fg-line);
    box-shadow: 0 10px 24px rgba(9, 47, 45, 0.06);
}

.m-step-num {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--fg-lime);
    color: var(--fg-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(114, 214, 164, 0.18);
}

.m-step h3 {
    margin: 0 0 5px;
    font-size: 17px;
    line-height: 1.35;
}

.m-step p {
    margin: 0;
    color: #476964;
    font-size: 14px;
}

.m-step-img {
    grid-column: 1 / -1;
    max-width: 340px;
    width: 100%;
    height: auto;
    display: block;
    margin: 12px auto 0;
    border-radius: 16px;
    transform: scale(1.3);
}

/* ── Fleet Captain Modal ── */
.fleet-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(9, 47, 45, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.fleet-modal-overlay.open {
    display: flex;
}
.fleet-modal {
    background: #fff;
    border-radius: 28px;
    padding: 36px 28px 28px;
    max-width: 340px;
    width: 100%;
    position: relative;
    text-align: center;
    box-shadow: 0 24px 60px rgba(9, 47, 45, 0.22);
    animation: fleetModalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes fleetModalIn {
    from { opacity: 0; transform: scale(0.88) translateY(18px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.fleet-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #f0f5f4;
    color: #0a2e2b;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.fleet-modal-close:active { background: #dce8e6; }
.fleet-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--fg-lime, #72d6a4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 8px 22px rgba(114, 214, 164, 0.35);
}
.fleet-modal-icon svg {
    width: 30px;
    height: 30px;
}
.fleet-modal h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 900;
    color: #0a2e2b;
}
.fleet-modal > p {
    margin: 0 0 22px;
    color: #476964;
    font-size: 14px;
    line-height: 1.55;
}
.fleet-modal-tel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0a2e2b;
    color: #fff;
    border-radius: 16px;
    padding: 15px 20px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 1px;
    text-decoration: none;
    margin-bottom: 12px;
    transition: opacity 0.2s;
}
.fleet-modal-tel svg { flex-shrink: 0; }
.fleet-modal-tel:active { opacity: 0.82; }
.fleet-modal-hint {
    font-size: 12px;
    color: #9ab5b2;
    margin: 0;
}

.m-visual {
    margin: 16px auto 0;
    padding: 16px;
    border-radius: 30px;
    background: #fff;
    border: 1px solid var(--fg-line);
    text-align: center;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(9, 47, 45, 0.08);
}

.m-visual img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.m-phone-preview img {
    max-height: 360px;
}

.m-driver-tutorial {
    display: grid;
    gap: 12px;
}

.m-driver-tutorial-card {
    position: relative;
    overflow: hidden;
    min-height: 168px;
    padding: 22px;
    border-radius: 28px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 14%, rgba(216, 246, 138, 0.28), transparent 30%),
        linear-gradient(135deg, #0a2926 0%, #265b56 100%);
    box-shadow: 0 16px 34px rgba(9, 47, 45, 0.18);
}

.m-driver-tutorial-card::after {
    content: '→';
    position: absolute;
    right: 20px;
    bottom: 14px;
    color: rgba(216, 246, 138, 0.86);
    font-size: 50px;
    line-height: 1;
    font-weight: 900;
}

.m-driver-tutorial-kicker {
    display: inline-flex;
    margin-bottom: 20px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--fg-ink);
    background: var(--fg-lime);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.m-driver-tutorial-card h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 900;
}

.m-driver-tutorial-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: 22em;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
}

.m-driver-download {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 26px;
    background: #fff;
    border: 1px solid var(--fg-line);
    box-shadow: 0 10px 24px rgba(9, 47, 45, 0.06);
}

.m-driver-qr {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    aspect-ratio: 1;
    padding: 10px;
    border-radius: 22px;
    background: #fffef9;
    border: 1px solid rgba(9, 47, 45, 0.08);
}

.m-driver-qr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.m-driver-download strong {
    display: block;
    margin-bottom: 5px;
    color: var(--fg-ink);
    font-size: 18px;
    line-height: 1.25;
    font-weight: 900;
}

.m-driver-download span {
    display: block;
    color: #456863;
    font-size: 13px;
    line-height: 1.6;
}

.m-driver-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.m-driver-actions .m-btn {
    width: 100%;
    padding: 0 12px;
    white-space: nowrap;
}

.m-details {
    display: grid;
    gap: 10px;
}

.m-details details {
    border-radius: 21px;
    background: #fff;
    border: 1px solid var(--fg-line);
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(9, 47, 45, 0.05);
}

.m-details summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 18px;
    color: var(--fg-ink);
    font-size: 16px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.m-details summary::after {
    content: '+';
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--fg-ink);
    background: #edf7df;
}

.m-details details[open] summary::after {
    content: '-';
    background: var(--fg-orange);
    color: #fff;
}

.m-details summary::-webkit-details-marker {
    display: none;
}

.m-details details p {
    margin: 0;
    padding: 0 18px 18px;
    color: #456863;
    font-size: 14px;
}

.m-cta-band {
    margin: 10px 0 0;
    padding: 26px 22px;
    border-radius: 30px;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(9, 47, 45, 0.84), rgba(9, 47, 45, 0.66)),
        url('../assets/images/driver-cta-bg.png') center / cover no-repeat;
    box-shadow: 0 16px 38px rgba(9, 47, 45, 0.16);
}

.m-cta-band h2 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.25;
}

.m-cta-band p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.9);
}

.m-contact-list {
    display: grid;
    gap: 10px;
}

.m-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--fg-line);
    box-shadow: 0 8px 22px rgba(9, 47, 45, 0.05);
}

.m-contact-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #edf7df;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: none;
}

.m-contact-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.m-form {
    display: grid;
    gap: 14px;
    padding: 20px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid var(--fg-line);
    box-shadow: 0 12px 30px rgba(9, 47, 45, 0.07);
}

.m-form label {
    display: block;
    margin-bottom: 7px;
    color: var(--fg-ink-soft);
    font-size: 13px;
    font-weight: 800;
}

.m-form input,
.m-form textarea,
.m-form select {
    width: 100%;
    border: 1px solid rgba(9, 47, 45, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    padding: 13px 14px;
    color: var(--fg-ink);
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.m-form input:focus,
.m-form textarea:focus,
.m-form select:focus {
    border-color: rgba(255, 122, 51, 0.55);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 122, 51, 0.12);
}

.m-form textarea {
    resize: vertical;
    min-height: 104px;
}

.m-phone-field {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 8px;
}

.m-submit {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 999px;
    color: var(--fg-ink);
    background: var(--fg-lime);
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(114, 214, 164, 0.2);
    transition: transform 0.18s ease;
}

.m-submit.success {
    color: #fff;
    background: var(--fg-ink-soft);
}

.m-success-card {
    margin-top: 28px;
    padding: 34px 22px;
    border-radius: 30px;
    background: #fff;
    border: 1px solid var(--fg-line);
    text-align: center;
    box-shadow: var(--fg-shadow);
}

.m-success-mark {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    margin: 0 auto 18px;
    background: var(--fg-ink);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 900;
}

.m-footer {
    position: relative;
    padding: 44px 0 calc(28px + env(safe-area-inset-bottom));
    margin-top: 36px;
    color: #e6f2e5;
    background: #0a2926;
    border-radius: 32px 32px 0 0;
    box-shadow: 0 -20px 50px rgba(9, 47, 45, 0.18);
    overflow: hidden;
}

.m-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(120% 60% at 100% 0%, rgba(216, 246, 138, 0.12), transparent 55%),
        radial-gradient(80% 50% at 0% 100%, rgba(114, 214, 164, 0.1), transparent 60%);
}

.m-footer .m-wrap {
    position: relative;
    display: grid;
    gap: 26px;
}

.m-footer-hero {
    display: grid;
    gap: 18px;
    padding-bottom: 26px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.m-footer-kicker {
    color: rgba(216, 246, 138, 0.92);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.m-footer-wordmark {
    margin: 0;
    color: #fff;
    font-size: 40px;
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.m-footer-wordmark em {
    font-style: normal;
    color: var(--fg-lime);
}

.m-footer-cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 999px;
    color: var(--fg-ink);
    background: var(--fg-lime);
    font-weight: 900;
    font-size: 14px;
    box-shadow: 0 16px 30px -14px rgba(216, 246, 138, 0.55);
}

.m-footer-nav {
    display: grid;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.m-footer-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 4px;
    color: #f1faea;
    font-size: 15px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: color 0.2s ease;
}

.m-footer-nav a:last-child {
    border-bottom: 0;
}

.m-footer-nav svg {
    color: rgba(255, 255, 255, 0.4);
}

.m-footer-nav a:active {
    color: var(--fg-lime);
}

.m-footer-contact {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 18px;
}

.m-footer-contact li {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 12px;
    align-items: start;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    line-height: 1.6;
}

.m-footer-contact li svg {
    width: 32px;
    height: 32px;
    padding: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--fg-lime);
}

.m-footer-contact li div {
    display: grid;
    gap: 2px;
}

.m-footer-contact li span {
    color: rgba(216, 246, 138, 0.78);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.m-footer-contact a {
    color: inherit;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.m-footer-social {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.m-footer-social a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 8px 12px;
    border-radius: 18px;
    color: #f1faea;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    font-weight: 800;
    transition: transform 0.18s ease, background 0.18s ease;
}

.m-footer-social a:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.1);
}

.m-footer-social img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex: 0 0 auto;
}

.m-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.m-footer-bottom a {
    color: rgba(216, 246, 138, 0.92);
    font-weight: 800;
}

@media (prefers-reduced-motion: no-preference) {
    .m-hero-content,
    .m-section-head,
    .m-card,
    .m-step,
    .m-details details,
    .m-contact-item,
    .m-form,
    .m-cta-band {
        animation: m-fade-up 0.48s ease both;
    }

    .m-card:nth-child(2),
    .m-step:nth-child(2),
    .m-details details:nth-child(2),
    .m-contact-item:nth-child(2) {
        animation-delay: 0.05s;
    }

    .m-card:nth-child(3),
    .m-step:nth-child(3),
    .m-details details:nth-child(3),
    .m-contact-item:nth-child(3) {
        animation-delay: 0.1s;
    }
}

@keyframes m-fade-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 460px) {
    .m-wrap {
        width: min(100% - 24px, 640px);
    }

    .m-grid.two,
    .m-stat-grid {
        grid-template-columns: 1fr;
    }

    .m-hero h1 {
        font-size: 36px;
    }

    .m-hero {
        width: min(100% - 18px, 640px);
        min-height: 420px;
    }

    .m-hero.home {
        min-height: 500px;
    }

    .m-phone-field {
        grid-template-columns: 1fr;
    }
}
