@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

@font-face {
    font-family: 'Tesla';
    src: url('./TESLA.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Cybertruck';
    src: url('./Cybertruck-RegularTTF.ttf') format('truetype');
    font-display: swap;
}

:root {
    --tesla-red: #E82127;
    --tesla-dark: #171a20;
    --tesla-gray: #393c41;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #fff;
    color: var(--tesla-dark);
    overflow-x: hidden;
    scroll-behavior: smooth;
    scrollbar-color: #9a9a9a #ffffff;
}

html {
    scrollbar-color: #9a9a9a #ffffff;
}

::-webkit-scrollbar {
    width: 14px;
    height: 14px;
}

::-webkit-scrollbar-track {
    background: #ffffff;
}

::-webkit-scrollbar-thumb {
    background: #9a9a9a;
    border: 0;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8c8c8c;
}

::-webkit-scrollbar-corner {
    background: #ffffff;
}

::-webkit-scrollbar-button {
    background: #ffffff;
}

.hero-section {
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 15vh 0 10vh 0;
    position: relative;
}

.hero-carousel-section {
    height: 82.5vh;
    padding: 0;
    overflow: hidden;
}

.hero-carousel-stage {
    position: absolute;
    inset: 0;
}

.hero-carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease;
    pointer-events: none;
}

.hero-carousel-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-carousel-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.02) 36%, rgba(0, 0, 0, 0.16) 100%);
    z-index: 1;
}

.hero-carousel-copy {
    position: relative;
    z-index: 12;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 118px 0 28px;
    color: white;
    text-align: center;
}

.hero-carousel-text h1 {
    margin: 0 0 8px;
    font-size: clamp(2.1rem, 3.4vw, 3.1rem);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.hero-carousel-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

.hero-carousel-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 28px;
}

.hero-carousel-cta {
    min-width: 200px;
    min-height: 44px;
    padding: 0 26px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--tesla-dark);
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.hero-carousel-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
    background: white;
}

#carousel-primary {
    background: #3e6ae1;
    color: white;
}

#carousel-primary:hover {
    background: #3457b8;
    color: white;
}

.hero-carousel-nav {
    position: absolute;
    inset: 0;
    z-index: 13;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    transform: translateY(44px);
    pointer-events: none;
}

.hero-carousel-arrow {
    width: 42px;
    height: 42px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--tesla-dark);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    font-size: 1.75rem;
    font-weight: 300;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.hero-carousel-arrow:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
    background: white;
}

.hero-carousel-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.hero-carousel-footer {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 0 22px;
}

.hero-carousel-footer-left {
    display: flex;
    justify-content: flex-start;
}

.hero-carousel-pause {
    width: 42px;
    height: 42px;
    border-radius: 4px;
    background: rgba(82, 86, 93, 0.96);
    color: white;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.42rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-shadow: 0 0 0.8px currentColor;
    line-height: 1;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.hero-carousel-pause:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
    background: rgba(98, 102, 110, 0.98);
}

.hero-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.48);
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.hero-carousel-dot.is-active {
    background: white;
    transform: scale(1.05);
}

.manual-carousel-section {
    height: auto;
    min-height: 0;
    display: block;
    padding: 48px 0 38px;
    background: #ffffff;
}

.manual-carousel-shell {
    width: min(95%, 1820px);
    margin: 0 auto;
}

.manual-carousel-viewport {
    position: relative;
    overflow: hidden;
}

.manual-carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
    transform: translateX(0);
    will-change: transform;
}

.manual-carousel-card {
    position: relative;
    flex: 0 0 64%;
    min-height: 580px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    color: white;
    box-shadow: 0 28px 50px rgba(18, 22, 29, 0.12);
}

.manual-carousel-card-cybertruck {
    background-position: 54% center;
}

.manual-carousel-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 18, 24, 0.08) 0%, rgba(13, 18, 24, 0.08) 48%, rgba(13, 18, 24, 0.52) 100%);
}

.manual-carousel-card-copy {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 34px 40px 40px;
}

.manual-carousel-kicker {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.manual-carousel-card-footer h2 {
    margin: 0 0 6px;
    font-size: clamp(2rem, 3vw, 3.35rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    font-weight: 500;
}

.manual-carousel-cybertruck-title {
    font-family: 'Cybertruck', 'Tesla', sans-serif;
    letter-spacing: 0;
    font-size: clamp(2.4rem, 4vw, 4.25rem);
    line-height: 0.92;
    text-transform: uppercase;
}

.manual-carousel-cybertruck-title span {
    display: inline-block;
}

.manual-carousel-cybertruck-title span+span {
    margin-left: -0.2em;
}

.manual-carousel-card-footer p {
    margin: 0;
    font-size: 1.14rem;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.manual-carousel-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.manual-carousel-btn {
    min-width: 160px;
    min-height: 40px;
    padding: 0 24px;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.manual-carousel-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.manual-carousel-btn-primary {
    background: #3e6ae1;
    color: white;
}

.manual-carousel-btn-primary:hover {
    background: #3457b8;
}

.manual-carousel-btn-secondary {
    background: rgba(255, 255, 255, 0.96);
    color: var(--tesla-dark);
}

.manual-carousel-arrow {
    position: absolute;
    top: 44%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--tesla-dark);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.16);
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.manual-carousel-arrow:hover {
    transform: translateY(calc(-50% - 1px));
    box-shadow: 0 22px 34px rgba(0, 0, 0, 0.2);
}

.manual-carousel-arrow[hidden] {
    display: none;
}

.manual-carousel-arrow-prev {
    left: 18px;
}

.manual-carousel-arrow-next {
    right: 18px;
}

.manual-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding-top: 22px;
}

.manual-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #babec3;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.manual-carousel-dot.is-active {
    background: #171a20;
    transform: scale(1.08);
}

.part3-section {
    height: auto;
    min-height: 0;
    display: block;
    padding: 18px 0 52px;
    background: #ffffff;
}

.part3-shell {
    width: min(95%, 1820px);
    margin: 0 auto;
}

.part3-top-row,
.part3-bottom-row {
    display: grid;
    gap: 24px;
}

.part3-top-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 34px;
}

.part3-top-card {
    height: 220px;
    border-radius: 8px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 2.05fr 1fr;
    background: #f5f3f1;
}

.part3-top-copy {
    padding: 18px 34px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.part3-top-copy h2 {
    margin: 0 0 10px;
    font-size: clamp(1.65rem, 2.4vw, 2.4rem);
    line-height: 1;
    letter-spacing: -0.04em;
    font-weight: 500;
    color: var(--tesla-dark);
}

.part3-top-copy p {
    margin: 0 0 14px;
    max-width: 430px;
    font-size: 1.1rem;
    line-height: 1.35;
    color: rgba(23, 26, 32, 0.82);
}

.part3-light-btn {
    min-width: 180px;
    min-height: 34px;
    padding: 0 18px;
    border-radius: 4px;
    background: #ffffff;
    color: var(--tesla-dark);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: none;
}

.part3-top-image,
.part3-feature-card {
    background-size: cover;
    background-position: center;
}

.manual-carousel-card,
.solar-carousel-card {
    background-size: cover;
    background-position: center center;
}

.part3-bottom-row {
    grid-template-columns: minmax(0, 2.08fr) minmax(300px, 1fr);
    align-items: stretch;
}

.part3-feature-card {
    position: relative;
    min-height: 428px;
    border-radius: 8px;
    overflow: hidden;
    color: white;
}

.part3-feature-card-wide {
    min-height: 580px;
}

.part3-feature-card-tall {
    min-height: 580px;
}

.part3-feature-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 12, 18, 0.06) 0%, rgba(8, 12, 18, 0.12) 48%, rgba(8, 12, 18, 0.38) 100%);
}

.part3-feature-copy {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 18px;
    padding: 40px;
}

.part3-feature-copy h2 {
    margin: 0 0 8px;
    font-size: clamp(1.95rem, 2.85vw, 2.95rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    font-weight: 500;
    max-width: 12ch;
}

.part3-feature-card-wide .part3-feature-copy h2 {
    max-width: 11ch;
    max-width: none;
    white-space: nowrap;
}

.part3-feature-copy p {
    margin: 0;
    font-size: 1.16rem;
    font-weight: 600;
    text-decoration: none;
}

.part3-feature-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.part3-cta-primary,
.part3-cta-secondary {
    min-width: 160px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 4px;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.05;
    white-space: nowrap;
}

.part3-cta-primary {
    background: #3e6ae1;
    color: white;
}

.part3-cta-secondary {
    background: rgba(255, 255, 255, 0.96);
    color: var(--tesla-dark);
}

.charge-map-section {
    height: auto;
    min-height: 0;
    display: block;
    padding: 8px 0 16px;
    background: #ffffff;
}

.charge-map-shell {
    width: min(95%, 1820px);
    margin: 0 auto;
}

.charge-map-frame {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #ececec;
    box-shadow: inset 0 0 0 1px rgba(23, 26, 32, 0.04);
    z-index: 0;
    isolation: isolate;
}

.charge-map-embed {
    width: 100%;
    height: 540px;
    border: 0;
    display: block;
    background: #111;
}

.charge-map-frame .leaflet-pane,
.charge-map-frame .leaflet-top,
.charge-map-frame .leaflet-bottom,
.charge-map-frame .leaflet-control {
    z-index: 1 !important;
}

.tesla-map-findme-control,
.tesla-map-camera-control {
    margin: 16px !important;
}

.tesla-map-control-btn {
    border: 0;
    background: #ffffff;
    color: #4b5563;
    box-shadow: 0 2px 10px rgba(23, 26, 32, 0.12);
    cursor: pointer;
}

.tesla-map-findme-btn {
    min-width: 116px;
    height: 40px;
    padding: 0 16px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #393c41;
}

.tesla-map-findme-icon {
    width: 18px;
    height: 18px;
    display: block;
    flex: 0 0 auto;
}

.tesla-map-camera-control {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.tesla-map-camera-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    opacity: 0;
    transform: translateX(10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.tesla-map-camera-control.is-expanded .tesla-map-camera-panel {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.tesla-map-pan-spacer {
    width: 40px;
    height: 40px;
}

.tesla-map-pan-btn,
.tesla-map-zoom-btn,
.tesla-map-camera-toggle {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 300;
    line-height: 1;
}

.tesla-map-pan-btn svg,
.tesla-map-zoom-btn svg,
.tesla-map-camera-toggle svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.tesla-map-marker-icon {
    width: 22px;
    height: 22px;
    display: block;
}

.tesla-map-marker-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 4px;
    color: #171a20;
    font-family: 'Inter', sans-serif;
}

.leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.95);
}

.charge-map-summary {
    width: min(95%, 1820px);
    margin: 0 auto;
    padding: 32px 10px 34px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) auto;
    gap: 36px;
    align-items: start;
}

.charge-map-copy h2 {
    margin: 0 0 8px;
    font-size: clamp(2.2rem, 3vw, 3rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    font-weight: 500;
    color: #0f1720;
}

.charge-map-copy p {
    margin: 0;
    max-width: 740px;
    font-size: 1.08rem;
    line-height: 1.4;
    color: rgba(23, 26, 32, 0.82);
}

.charge-map-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 28px;
    margin-bottom: 72px;
}

.charge-map-btn {
    min-width: 146px;
    min-height: 40px;
    padding: 0 22px;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.charge-map-btn:hover {
    transform: translateY(-1px);
}

.charge-map-btn-primary {
    background: #171a20;
    color: white;
}

.charge-map-btn-secondary {
    background: #f4f4f4;
    color: #171a20;
}

.charge-map-stats {
    display: flex;
    align-items: flex-start;
    gap: 34px;
    padding-top: 10px;
}

.charge-map-stat {
    min-width: 0;
}

.charge-map-stat-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.charge-map-stat-value {
    font-size: clamp(2rem, 2.65vw, 2.9rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
    font-weight: 500;
    color: #0f1720;
    white-space: nowrap;
}

.charge-map-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
}

.charge-map-stat-icon svg {
    width: 100%;
    height: 100%;
}

.charge-map-stat-label {
    font-size: 0.92rem;
    line-height: 1.25;
    color: rgba(23, 26, 32, 0.88);
}

.solar-carousel-section {
    height: auto;
    min-height: 0;
    display: block;
    padding: 8px 0 56px;
    background: #ffffff;
}

.solar-carousel-shell {
    width: min(95%, 1820px);
    margin: 0 auto;
}

.solar-carousel-viewport {
    position: relative;
    overflow: hidden;
}

.solar-carousel-card {
    flex: 0 0 70%;
    min-height: 560px;
}

.solar-carousel-card-copy {
    padding: 36px 48px 40px;
}

.solar-carousel-card-footer h2 {
    margin: 0 0 8px;
    font-size: clamp(2rem, 2.8vw, 3.15rem);
    line-height: 0.95;
    letter-spacing: -0.045em;
    font-weight: 500;
}

.solar-carousel-card-footer p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
}

.solar-carousel-actions {
    margin-top: 24px;
}

.solar-carousel-dots {
    padding-top: 16px;
}

.solar-carousel-footnote {
    margin: 32px 0 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    font-size: 0.74rem;
    line-height: 1.45;
    color: rgba(23, 26, 32, 0.8);
}

.solar-carousel-footnote span {
    display: block;
}

@media (min-width: 600px) {
    .solar-carousel-footnote {
        text-align: left;
    }
}

.site-footer {
    padding: 24px 20px 88px;
    background: #ffffff;
}

.site-footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    max-width: 1080px;
    margin: 0 auto;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(23, 26, 32, 0.86);
}

.site-footer-links a {
    color: inherit;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

.content-z {
    z-index: 10;
    text-align: center;
}

.btn-primary {
    background-color: var(--tesla-gray);
    color: white;
    padding: 12px 80px;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    opacity: 0.85;
}

.btn-primary:hover {
    opacity: 1;
    background-color: var(--tesla-dark);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.65);
    color: var(--tesla-dark);
    padding: 12px 80px;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.scroll-container {
    height: auto;
    overflow: visible;
    scroll-snap-type: none;
}

.progress-bar {
    height: 2px;
    background-color: #e2e2e2;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.progress-fill {
    height: 100%;
    background-color: var(--tesla-dark);
    transition: width 0.4s ease;
}

.giveaway-overlay,
.giveaway-result-overlay {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    min-height: 100vh;
    z-index: 1000005;
    background: white;
    color: var(--tesla-dark);
    overflow-y: auto;
}

.giveaway-overlay .hidden,
.giveaway-result-overlay .hidden {
    display: none !important;
}

.giveaway-close {
    position: fixed;
    top: 22px;
    right: 26px;
    z-index: 4;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: var(--tesla-dark);
    background: rgba(255, 255, 255, 0.82);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.giveaway-close:hover {
    background: rgba(23, 26, 32, 0.06);
    transform: translateY(-1px);
}

.giveaway-close svg {
    width: 28px;
    height: 28px;
}

.giveaway-intro {
    min-height: 100vh;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
    align-items: stretch;
}

.giveaway-intro-media {
    min-height: 100vh;
    background: #f4f4f4;
}

.giveaway-intro-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.giveaway-intro-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 76px 58px;
}

.giveaway-kicker {
    margin-bottom: 12px;
    color: #5c5e62;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.giveaway-intro-copy h1,
.giveaway-result-card h1 {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 4.6rem);
    line-height: 0.95;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.giveaway-intro-copy p,
.giveaway-result-copy {
    margin: 24px 0 34px;
    max-width: 520px;
    color: #393c41;
    font-size: 1rem;
    line-height: 1.55;
}

.giveaway-primary-btn,
.giveaway-secondary-btn {
    width: min(100%, 320px);
    min-height: 44px;
    padding: 0 26px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    font-weight: 700;
    text-align: center;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.giveaway-primary-btn {
    background: #3e6ae1;
    color: #ffffff;
}

.giveaway-primary-btn:hover {
    background: #3457b8;
    color: #ffffff;
    transform: translateY(-1px);
}

.giveaway-secondary-btn {
    background: #f4f4f4;
    color: var(--tesla-dark);
}

.giveaway-secondary-btn:hover {
    background: #e8e8e8;
    transform: translateY(-1px);
}

.giveaway-quiz {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 92px 24px 58px;
}

.giveaway-quiz-inner {
    width: min(100%, 680px);
}

.giveaway-quiz-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 40px;
    color: #5c5e62;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.giveaway-question-text {
    margin: 0 0 28px;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    line-height: 1.08;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.giveaway-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-option {
    width: 100%;
    min-height: 56px;
    border: 1px solid #d0d1d2;
    padding: 15px 18px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    color: var(--tesla-dark);
    background: #ffffff;
    font-weight: 600;
}

.quiz-option:hover {
    background-color: #f4f4f4;
    border-color: #171a20;
}

.quiz-option.selected {
    background-color: #171a20;
    color: white;
    border-color: #171a20;
}

.quiz-option.is-correct {
    background: #dff7e8;
    border-color: #2f9e55;
    color: #123d22;
}

.quiz-option:disabled {
    cursor: default;
}

.giveaway-result-overlay {
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
}

.giveaway-result-card {
    width: min(100%, 680px);
    text-align: center;
}

.giveaway-result-card .giveaway-primary-btn,
.giveaway-result-card .giveaway-secondary-btn {
    margin: 0 auto;
}

@media (max-width: 899px) {
    .giveaway-intro {
        grid-template-columns: 1fr;
    }

    .giveaway-intro-media {
        min-height: 42vh;
    }

    .giveaway-intro-copy {
        min-height: 58vh;
        padding: 42px 28px 58px;
        justify-content: flex-start;
    }
}

@media (max-width: 599px) {
    .giveaway-close {
        top: 14px;
        right: 14px;
        width: 42px;
        height: 42px;
    }

    .giveaway-intro-media {
        min-height: 38vh;
    }

    .giveaway-intro-copy {
        min-height: 62vh;
        padding: 30px 22px 42px;
    }

    .giveaway-intro-copy p,
    .giveaway-result-copy {
        margin: 18px 0 24px;
        font-size: 0.92rem;
    }

    .giveaway-primary-btn,
    .giveaway-secondary-btn {
        width: 100%;
    }

    .giveaway-quiz {
        align-items: flex-start;
        padding: 76px 20px 42px;
    }

    .giveaway-quiz-header {
        flex-direction: column;
        gap: 6px;
        margin-bottom: 30px;
    }

    .giveaway-result-overlay {
        padding: 76px 22px 42px;
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-wordmark {
    font-family: 'Tesla', 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.48em;
    text-transform: uppercase;
    line-height: 1;
}

.nav-shell {
    --mobile-menu-start: #334763;
    --mobile-menu-end: #8aa7c7;
    --mobile-nav-color: #ffffff;
    background-color: #ffffff;
    color: var(--tesla-dark);
    box-shadow: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    z-index: 3000 !important;
}

.nav-shell .nav-link {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-link-trigger {
    position: relative;
    z-index: 60;
}

.nav-link-trigger[aria-expanded="true"] {
    background-color: rgba(23, 26, 32, 0.06);
}

.desktop-nav {
    display: flex;
}

.responsive-nav {
    display: none;
    width: 100%;
    grid-template-columns: max-content 1fr max-content;
    align-items: center;
    gap: 0;
    position: relative;
}

.responsive-nav-center {
    display: flex;
    justify-content: flex-start;
    min-width: 0;
    grid-column: 1;
}

.responsive-nav-spacer {
    display: none;
}

.mobile-menu-trigger {
    min-width: 60px;
    width: 60px;
    height: 34px;
    padding: 0 8px;
    border-radius: 0;
    font-size: 0.82rem;
    font-weight: 600;
    grid-column: 3;
    justify-self: end;
    background:
        linear-gradient(to bottom, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)),
        linear-gradient(to right, var(--mobile-menu-start) 0%, var(--mobile-menu-start) 88%, var(--mobile-menu-end) 100%);
    color: white;
    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    border: 0;
    box-shadow: 0 10px 24px rgba(23, 26, 32, 0.14);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.mobile-menu-trigger:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(23, 26, 32, 0.18);
}

.nav-icon-group {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.nav-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-icon-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.nav-icon {
    width: 24px;
    height: 24px;
}

.nav-shell.is-light {
    color: var(--tesla-dark);
}

.nav-shell.is-light .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.nav-shell:not(.is-light) .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.mega-menu {
    position: fixed;
    top: 58px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(23, 26, 32, 0.06);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-14px);
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
    z-index: 2990;
}

body.nav-overlay-open {
    overflow: hidden;
}

body.nav-overlay-open .scroll-container,
body.nav-overlay-open .site-footer,
body.nav-overlay-open .schedule-drive-bar,
body.nav-overlay-open .cookie-banner {
    filter: blur(8px);
    transition: filter 0.25s ease;
}

body.nav-overlay-open .scroll-container,
body.nav-overlay-open .site-footer {
    pointer-events: none;
}

.mega-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.mega-menu-inner {
    max-width: 1480px;
    margin: 0 auto;
    padding: 34px 20px 38px;
    display: grid;
    grid-template-columns: fit-content(1000px) 260px;
    justify-content: start;
    gap: 0;
    align-items: start;
}

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 220px));
    justify-content: start;
    gap: 24px 42px;
    padding-right: 0;
}

.vehicle-grid--energy {
    grid-template-columns: repeat(4, minmax(180px, 220px));
}

.vehicle-grid--charging {
    grid-template-columns: repeat(4, minmax(180px, 220px));
}

.vehicle-grid--shop {
    grid-template-columns: repeat(4, minmax(220px, 260px));
    width: 100%;
    justify-content: center;
}

.vehicle-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--tesla-dark);
}

.vehicle-card img {
    width: 100%;
    max-width: 248px;
    height: 118px;
    object-fit: contain;
    margin-bottom: 12px;
}

.vehicle-grid--charging .vehicle-card img,
.vehicle-grid--shop .vehicle-card img,
.vehicle-grid--energy .vehicle-card img {
    height: 126px;
}

.vehicle-card--wide img {
    max-width: 248px;
}

.vehicle-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

.vehicle-card-links {
    display: flex;
    gap: 18px;
    font-size: 0.82rem;
}

.vehicle-card-links a,
.mega-menu-side a {
    color: rgba(23, 26, 32, 0.7);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.mega-menu-side {
    position: relative;
    padding-left: 82px;
    margin-left: 82px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.84rem;
    font-weight: 600;
}

.mega-menu-side::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 1px;
    background: rgba(23, 26, 32, 0.1);
}

.mega-menu-side a {
    text-decoration: none;
    color: var(--tesla-dark);
    white-space: nowrap;
}

.mega-menu-side a:hover,
.vehicle-card-links a:hover {
    color: var(--tesla-dark);
}

.mega-menu--discover .mega-menu-inner {
    grid-template-columns: 1fr;
    justify-content: center;
    max-width: 980px;
    padding-top: 54px;
    padding-bottom: 56px;
}

.discover-menu-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 80px;
    justify-content: center;
}

.discover-menu-column h3 {
    margin: 0 0 18px;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(23, 26, 32, 0.62);
}

.discover-menu-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.discover-menu-column a {
    color: var(--tesla-dark);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.25;
}

.mega-menu--shop .mega-menu-inner {
    grid-template-columns: 1fr;
    max-width: 1220px;
    padding-top: 42px;
    padding-bottom: 34px;
}

.menu-overlay,
.menu-vehicles-overlay {
    position: fixed;
    inset: 0;
    background: white;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.26s ease, transform 0.26s ease, visibility 0.26s ease;
    z-index: 1000004;
}

.menu-overlay.is-open,
.menu-vehicles-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.menu-overlay-panel,
.menu-vehicles-panel {
    height: 100%;
    overflow-y: auto;
    padding: 20px 20px 34px;
}

.menu-vehicles-panel {
    padding-top: 0;
    padding-bottom: 0;
}

.menu-overlay-header,
.menu-vehicles-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
}

.menu-overlay-header {
    justify-content: flex-end;
}

.menu-overlay-close,
.menu-vehicles-close,
.menu-vehicles-back {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--tesla-dark);
}

.menu-overlay-close:hover,
.menu-vehicles-close:hover,
.menu-vehicles-back:hover {
    background: rgba(0, 0, 0, 0.05);
}

.menu-overlay-close span,
.menu-vehicles-close span,
.menu-vehicles-back span {
    line-height: 1;
}

.menu-overlay-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.menu-overlay-item,
.menu-overlay-static {
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 6px;
    padding: 0 12px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--tesla-dark);
    background: none;
    border: 0;
}

.menu-overlay-item:hover,
.menu-overlay-static:hover {
    background: rgba(0, 0, 0, 0.04);
}

.menu-overlay-chevron {
    font-size: 1.55rem;
    font-weight: 300;
    color: rgba(23, 26, 32, 0.82);
}

.menu-overlay-section {
    margin-top: 18px;
    padding-top: 10px;
}

.menu-overlay-static {
    justify-content: flex-start;
    gap: 14px;
    min-height: 62px;
    align-items: flex-start;
    padding-top: 10px;
    padding-bottom: 10px;
}

.menu-overlay-static-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
}

.menu-overlay-static-subtext {
    font-size: 0.95rem;
    font-weight: 400;
    color: rgba(23, 26, 32, 0.65);
}

.menu-overlay-static-end {
    margin-left: auto;
}

.menu-overlay-section .menu-overlay-static:first-child {
    margin-bottom: 28px;
}

.menu-vehicles-header {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
    position: sticky;
    top: 0;
    z-index: 20;
    background: #ffffff;
    padding: 12px 0 12px;
}

.menu-vehicles-title {
    text-align: center;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--tesla-dark);
}

.menu-vehicles-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 18px;
}

.menu-vehicles-card {
    text-align: center;
    color: var(--tesla-dark);
}

.menu-vehicles-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.menu-vehicles-card img {
    width: 100%;
    height: 110px;
    object-fit: contain;
    margin-bottom: 10px;
}

.menu-vehicles-card h3 {
    margin: 0 0 8px;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.2;
}

.menu-vehicles-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    font-size: 0.84rem;
}

.menu-vehicles-links a {
    color: rgba(23, 26, 32, 0.72);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.menu-vehicles-options {
    margin-top: 28px;
    padding: 24px 0 0;
    border-top: 1px solid rgba(23, 26, 32, 0.1);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.menu-vehicles-options a {
    color: var(--tesla-dark);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    padding: 12px 10px;
    min-height: 56px;
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease;
}

.menu-vehicles-options a:hover {
    background: rgba(0, 0, 0, 0.04);
}

.menu-discover-groups {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.menu-discover-group h3 {
    display: none;
}

.menu-discover-options {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.menu-region-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 10px;
}

.menu-region-item {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border: 0;
    border-radius: 6px;
    background: none;
    color: var(--tesla-dark);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
}

.menu-region-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.menu-region-item.is-highlighted {
    background: rgba(0, 0, 0, 0.04);
}

body.menu-open {
    overflow: hidden;
}

.hero-copy-light {
    color: white;
}

.hero-copy-light p {
    border-color: white;
}

.cookie-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.18);
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    transition: opacity 0.35s ease, backdrop-filter 0.35s ease, -webkit-backdrop-filter 0.35s ease;
    z-index: 1000002;
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 52px 18px 52px;
    background: #ffffff;
    border-top: 1px solid rgba(23, 26, 32, 0.12);
    box-shadow: 0 -10px 30px rgba(23, 26, 32, 0.08);
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
    z-index: 1000003;
}

.cookie-banner--text {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    padding: 0 10px;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(23, 26, 32, 0.86);
}

.cookie-banner--text strong {
    display: block;
    margin-bottom: 2px;
    font-size: 14px;
    font-weight: 600;
    color: #171a20;
}

.cookie-banner--paragraph {
    margin: 0;
}

.cookie-settings-url {
    color: #4b5563;
    font-weight: 600;
}

.cookie-banner--btn-container {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    min-width: 104px;
    padding: 11px 22px;
    border-radius: 4px;
    border: 0;
    background: #f4f4f4;
    color: #4b5563;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.cookie-btn:hover {
    background: #ebebeb;
    color: #171a20;
    transform: translateY(-1px);
}

body.cookie-consent-pending .cookie-backdrop {
    opacity: 1;
    pointer-events: auto;
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

body.cookie-consent-pending .cookie-banner {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

body.cookie-consent-pending {
    overflow: hidden;
}

.schedule-drive-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(23, 26, 32, 0.08);
    box-shadow: 0 -8px 22px rgba(23, 26, 32, 0.06);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000001;
}

.schedule-drive-btn {
    min-width: 280px;
    min-height: 40px;
    padding: 0 28px;
    border-radius: 4px;
    border: 1px solid rgba(23, 26, 32, 0.14);
    background: #f4f4f4;
    color: #22304b;
    font-size: 0.88rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    white-space: nowrap;
    box-shadow: none;
}

@media (min-width: 1200px) {
    .schedule-question-btn {
        min-width: 700px;
    }
}

.schedule-drive-icon {
    width: 22px;
    height: 22px;
    color: #3e6ae1;
    flex: 0 0 auto;
}

.schedule-giveaway-icon {
    width: 22px;
    height: 22px;
    color: #5c5e62;
    flex: 0 0 auto;
}

body.cookie-consent-set .schedule-drive-bar {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

@media (max-width: 599px) {
    .cookie-banner {
        padding: 16px 18px;
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner--btn-container {
        width: 100%;
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }
}

@media (max-width: 1199px) {
    .vehicle-grid {
        grid-template-columns: repeat(3, minmax(180px, 220px));
    }
}

@media (max-width: 1199px) {
    #site-nav {
        padding-left: 22px !important;
        padding-right: 16px !important;
    }

    .desktop-nav {
        display: none;
    }

    .responsive-nav {
        display: grid;
    }

    .mega-menu {
        display: none;
    }

    .logo-wordmark {
        font-size: 1rem;
        letter-spacing: 0.36em;
    }

    .hero-carousel-copy {
        padding-top: 0;
    }

    .hero-carousel-text {
        padding-top: 10%;
    }

    .manual-carousel-shell {
        width: calc(100% - 32px);
    }

    .manual-carousel-track {
        transform: translateX(0);
    }

    .manual-carousel-card {
        flex: 0 0 650px;
        min-height: 520px;
    }

    .manual-carousel-card-copy {
        padding: 28px 28px 32px;
    }

    .part3-shell {
        width: calc(100% - 32px);
    }

    .part3-top-row,
    .part3-bottom-row {
        grid-template-columns: 1fr;
    }

    .part3-top-card {
        grid-template-columns: 1.7fr 1fr;
    }

    .part3-feature-card,
    .part3-feature-card-wide,
    .part3-feature-card-tall {
        min-height: 520px;
    }

    .charge-map-shell {
        width: calc(100% - 32px);
    }

    .charge-map-summary {
        grid-template-columns: 1fr;
        align-items: start;
    }
}

@media (min-width: 600px) and (max-width: 1199px) {
    .hero-carousel-section {
        height: 79.6vh;
    }

    .hero-carousel-copy {
        padding: clamp(128px, 18vh, 160px) 24px 28px;
    }

    .hero-carousel-text {
        width: min(82vw, 620px);
        margin-top: 0;
        padding-top: 0;
    }

    .hero-carousel-footer {
        display: flex;
        justify-content: center;
    }

    .hero-carousel-footer-left {
        position: absolute;
        top: calc(58px + 24px);
        right: 24px;
        justify-content: flex-end;
        z-index: 4001;
    }

    .hero-carousel-pagination {
        margin: 0 auto;
    }

    .hero-carousel-pause {
        font-size: 1.56rem;
    }

    .hero-carousel-actions {
        width: min(42vw, 330px);
        margin-left: auto;
        margin-right: auto;
        flex-wrap: nowrap;
    }

    .hero-carousel-cta {
        flex: 1 1 0;
        min-width: 0;
        font-size: 0.82rem;
        line-height: 1.3;
    }

    .nav-shell {
        background-color: #ffffff;
        color: var(--tesla-dark);
        box-shadow: none;
    }

    .nav-shell.is-light {
        color: var(--tesla-dark);
    }

    .responsive-nav .logo-wordmark {
        color: var(--tesla-dark);
        font-size: 1.18rem;
        text-shadow: none;
    }

    .mobile-menu-trigger {
        color: var(--tesla-dark);
        background: rgba(23, 26, 32, 0.1);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: 0 16px 26px rgba(23, 26, 32, 0.12);
    }

    .mobile-menu-trigger:hover {
        background: rgba(23, 26, 32, 0.14);
        box-shadow: 0 18px 30px rgba(23, 26, 32, 0.16);
    }

    .menu-overlay,
    .menu-vehicles-overlay {
        inset: 0;
        width: 100vw;
        box-shadow: none;
    }

    .menu-vehicles-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-carousel-arrow,
    .manual-carousel-arrow {
        display: none !important;
    }

    .hero-carousel-text h1 {
        font-size: clamp(1.62rem, 2.2vw, 2.2rem);
    }

    .manual-carousel-section .manual-carousel-btn {
        min-width: 290px;
    }

    .solar-carousel-shell {
        width: calc(100% - 32px);
    }

    .solar-carousel-card {
        flex: 0 0 650px;
        min-height: 520px;
    }

    .solar-carousel-card-copy {
        padding: 28px 28px 32px;
    }

    .solar-carousel-section .manual-carousel-btn {
        min-width: 290px;
    }

    .solar-carousel-actions {
        margin-top: 28px;
    }

    .solar-carousel-dots {
        padding-top: 22px;
    }

    .manual-carousel-card-footer h2 {
        font-size: 2.6rem;
    }

    .solar-carousel-footnote {
        text-align: center;
    }

    .part3-top-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        gap: 24px;
    }

    .part3-top-card {
        height: auto;
        min-height: 180px;
        grid-template-columns: 1fr;
    }

    .part3-top-copy {
        padding: 28px 24px;
    }

    .part3-top-copy p {
        font-size: 1rem;
    }

    .part3-top-image {
        display: none;
    }

    .part3-light-btn {
        width: min(252px, 100%);
        min-width: 0;
        min-height: 40px;
    }

    .part3-feature-card-wide .part3-feature-copy h2 {
        font-size:1.7rem;
    }

    .part3-feature-card-wide .part3-feature-copy p {
        font-size: 1rem;
    }

    .part3-feature-card-tall .part3-feature-copy h2 {
        max-width: none;
        font-size: 1.75rem;
        white-space: nowrap;
    }

    .part3-feature-card-tall .part3-cta-primary {
        height: 40px;
        min-height: 40px;
        padding-top: 0;
        padding-bottom: 0;
    }

    .charge-map-embed {
        height: 445px;
    }

    .charge-map-summary {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 30px 10px 34px;
    }

    .charge-map-copy {
        display: contents;
    }

    .charge-map-copy h2 {
        order: 1;
        margin-bottom: 6px;
        font-size: 2.4rem;
    }

    .charge-map-copy p {
        order: 2;
        max-width: none;
        font-size: 1.08rem;
    }

    .charge-map-stats {
        order: 3;
        gap: 40px;
        padding-top: 32px;
        flex-wrap: wrap;
    }

    .charge-map-stat-value {
        font-size: 2.35rem;
    }

    .charge-map-stat-icon {
        width: 32px;
        height: 32px;
    }

    .charge-map-stat-label {
        font-size: 1rem;
    }

    .charge-map-actions {
        order: 4;
        gap: 16px;
        margin-top: 34px;
        margin-bottom: 0;
    }

    .menu-vehicles-links {
        gap: 8px;
    }

    .menu-vehicles-links a {
        display: inline;
        padding: 0;
        text-align: left;
        min-height: 0;
        background: none;
        border-radius: 0;
        text-decoration: underline;
        text-underline-offset: 3px;
        color: rgba(23, 26, 32, 0.72);
    }

}

@media (max-width: 599px) {
    #site-nav {
        position: absolute !important;
        top: 0;
        left: 0;
        right: 0;
    }

    .nav-shell {
        background: transparent;
        color: var(--mobile-nav-color);
        box-shadow: none;
    }

    .nav-shell.is-light {
        color: var(--mobile-nav-color);
    }

    .responsive-nav .logo-wordmark {
        color: var(--mobile-nav-color);
        font-size: 1.08rem;
        letter-spacing: 0.4em;
        text-shadow: 0 1px 12px rgba(0, 0, 0, 0.22);
    }

    .responsive-nav {
        grid-template-columns: max-content 1fr max-content;
    }

    .mobile-menu-trigger {
        color: white;
        background:
            linear-gradient(to bottom, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
            linear-gradient(to bottom, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18)),
            linear-gradient(to right, var(--mobile-menu-start) 0%, var(--mobile-menu-start) 88%, var(--mobile-menu-end) 100%);
        box-shadow: 0 10px 20px rgba(23, 26, 32, 0.16);
    }

    .mobile-menu-trigger:hover {
        background:
            linear-gradient(to bottom, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
            linear-gradient(to bottom, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.22)),
            linear-gradient(to right, var(--mobile-menu-start) 0%, var(--mobile-menu-start) 88%, var(--mobile-menu-end) 100%);
        box-shadow: 0 12px 24px rgba(23, 26, 32, 0.2);
    }

    .hero-carousel-section {
        height: 83.3vh;
    }

    .menu-overlay-panel,
    .menu-vehicles-panel {
        padding-left: 18px;
        padding-right: 18px;
    }

    .menu-vehicles-panel {
        padding-top: 0;
        padding-bottom: 0;
    }

    .hero-carousel-nav {
        padding: 0 14px;
        transform: translateY(30px);
    }

    .hero-carousel-arrow {
        display: none !important;
    }

    .hero-carousel-footer {
        padding: 0 14px;
    }

    .hero-carousel-pause {
        width: 38px;
        height: 38px;
        font-size: 1.24rem;
    }

    .hero-carousel-copy {
        padding: 34px 0 24px;
    }

    .hero-carousel-text h1 {
        font-size: clamp(1.6rem, 4.2vw, 2rem);
        margin-bottom: 10px;
    }

    .hero-carousel-actions {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        gap: 6px;
        margin-top: 10px;
        flex-wrap: nowrap;
        padding: 0;
        box-sizing: border-box;
    }

    .hero-carousel-copy.is-vehicle-slide .hero-carousel-actions {
        width: 85vw;
        flex-direction: row;
        align-items: stretch;
        justify-content: center;
        gap: 8px;
    }

    .hero-carousel-cta {
        flex: 1 1 0;
        min-width: 0;
        min-height: 40px;
        padding: 0 10px;
        font-size: 0.85rem;
        font-weight: 600;
    }

    .hero-carousel-copy.is-vehicle-slide .hero-carousel-cta {
        width: auto;
        max-width: none;
        flex: 1 1 0;
    }

    .menu-vehicles-links {
        gap: 8px;
    }

    .menu-vehicles-links a {
        display: inline;
        padding: 0;
        text-align: left;
        min-height: 0;
        background: none;
        border-radius: 0;
        text-decoration: underline;
        text-underline-offset: 3px;
        color: rgba(23, 26, 32, 0.72);
    }

    .manual-carousel-section {
        padding: 28px 0 24px;
    }

    .manual-carousel-shell {
        width: calc(100% - 20px);
    }

    .manual-carousel-track {
        gap: 16px;
        transform: translateX(0);
    }

    .manual-carousel-card {
        flex: 0 0 330px;
        min-height: 520px;
        border-radius: 8px;
    }

    .manual-carousel-card-copy {
        padding: 24px 22px 18px;
    }

    .manual-carousel-card-footer h2 {
        font-size: clamp(1.9rem, 9vw, 2.9rem);
    }

    .manual-carousel-card-footer p {
        font-size: 0.92rem;
    }

    .manual-carousel-section .manual-carousel-actions {
        flex-direction: row;
        gap: 8px;
        align-items: stretch;
        justify-content: center;
        flex-wrap: nowrap;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        margin-top: 18px;
    }

    .manual-carousel-section .manual-carousel-btn {
        width: 49%;
        max-width: 49%;
        min-width: 0;
        flex: 0 0 49%;
        font-size: 0.82rem;
        white-space: nowrap;
    }

    .manual-carousel-arrow {
        display: none !important;
    }

    .part3-section {
        padding: 14px 0 30px;
    }

    .part3-shell {
        width: calc(100% - 20px);
    }

    .part3-top-row {
        margin-bottom: 20px;
    }

    .part3-top-card {
        height: auto;
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .part3-top-copy {
        order: 2;
        padding: 26px 22px 28px;
    }

    .part3-top-copy p {
        font-size: 0.96rem;
        line-height: 1.3;
    }

    .part3-light-btn {
        width: 252px;
        max-width: 100%;
        min-width: 0;
    }

    .part3-top-image {
        order: 1;
        min-height: 200px;
    }

    .part3-feature-card,
    .part3-feature-card-wide,
    .part3-feature-card-tall {
        min-height: 380px;
    }

    .part3-feature-card-wide {
        min-height: 520px;
        background-position: 42% center;
    }

    .part3-feature-card-tall {
        min-height: 520px;
        background-position: center top;
    }

    .part3-feature-copy {
        padding: 24px 16px 16px;
    }

    .part3-feature-copy h2 {
        font-size: clamp(2rem, 8vw, 2.7rem);
    }

    .part3-feature-card-wide .part3-feature-copy h2 {
        max-width: none;
        font-size: clamp(1.45rem, 6vw, 1.95rem);
        line-height: 1.05;
        white-space: normal;
    }

    .part3-feature-card-wide .part3-feature-copy p {
        font-size: 0.9rem;
    }

    .part3-feature-card-wide .part3-feature-actions {
        flex-direction: row;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .part3-feature-card-tall .part3-feature-copy h2 {
        max-width: none;
        font-size: clamp(1.4rem, 5.8vw, 1.9rem);
        line-height: 1.05;
        white-space: nowrap;
    }

    .part3-cta-primary,
    .part3-cta-secondary {
        width: 100%;
        min-width: 0;
        font-size: 0.8rem;
    }

    .part3-feature-card-wide .part3-cta-primary,
    .part3-feature-card-wide .part3-cta-secondary {
        flex: 1 1 0;
        min-height: 40px;
        padding: 0 10px;
    }

    .part3-feature-card-tall .part3-cta-primary {
        width: 160px;
        min-height: 40px;
    }

    .charge-map-section {
        padding: 8px 0 34px;
    }

    .charge-map-shell {
        width: calc(100% - 20px);
    }

    .charge-map-embed {
        height: 400px;
    }

    .charge-map-summary {
        display: flex;
        flex-direction: column;
        padding: 22px 0 0;
        gap: 0;
    }

    .charge-map-copy {
        display: contents;
    }

    .charge-map-copy h2 {
        order: 1;
        margin-bottom: 6px;
        font-size: clamp(2rem, 8vw, 2.35rem);
        line-height: 1.05;
    }

    .charge-map-copy p {
        order: 2;
        max-width: 34ch;
        font-size: 1rem;
        line-height: 1.3;
    }

    .charge-map-actions {
        order: 4;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 16px;
        margin-top: 30px;
        margin-bottom: 0;
    }

    .charge-map-btn {
        width: auto;
        flex: 1 1 0;
        min-width: 0;
        min-height: 40px;
        font-size: 0.9rem;
    }

    .charge-map-stats {
        order: 3;
        gap: clamp(28px, 8vw, 42px);
        padding-top: 32px;
        flex-wrap: nowrap;
    }

    .charge-map-stat-value {
        font-size: clamp(2rem, 8vw, 2.35rem);
    }

    .charge-map-stat-icon {
        width: 30px;
        height: 30px;
    }

    .charge-map-stat-label {
        font-size: 0.98rem;
    }

    .solar-carousel-section {
        padding: 28px 0 180px;
    }

    .solar-carousel-shell {
        width: calc(100% - 20px);
    }

    .solar-carousel-card {
        flex: 0 0 330px;
        min-height: 520px;
    }

    .solar-carousel-card-copy {
        padding: 24px 22px 18px;
    }

    .solar-carousel-card-footer h2 {
        font-size: clamp(1.9rem, 9vw, 2.9rem);
    }

    .solar-carousel-actions {
        flex-direction: row;
        gap: 8px;
        align-items: stretch;
        justify-content: center;
        flex-wrap: nowrap;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        margin-top: 18px;
    }

    .solar-carousel-section .manual-carousel-btn {
        width: 49%;
        max-width: 49%;
        min-width: 0;
        flex: 0 0 49%;
        font-size: 0.82rem;
        white-space: nowrap;
    }

    .site-footer {
        padding: 18px 16px 82px;
    }

    .site-footer-links {
        display: grid;
        grid-template-columns: 1fr;
        justify-content: center;
        align-items: center;
        gap: 14px;
        text-align: center;
        font-size: 0.76rem;
    }

    .site-footer-links a:nth-child(4),
    .site-footer-links a:nth-child(6),
    .site-footer-links a:nth-child(7) {
        display: none;
    }

    .schedule-drive-bar {
        flex-direction: row;
        gap: 8px;
        padding: 8px 10px;
    }

    .schedule-drive-btn {
        min-width: 0;
        min-height: 48px;
        height: 48px;
        width: auto;
        padding: 0 12px;
        font-size: 0.8rem;
    }

    .schedule-question-btn {
        flex: 1 1 auto;
        width: auto;
    }

    .schedule-drive-action {
        width: 64px;
        min-width: 64px;
        flex: 0 0 64px;
        padding: 0;
    }

    .schedule-drive-label {
        display: none;
    }
}

@media (min-width: 640px) {
    .menu-vehicles-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 449px) {
    .menu-vehicles-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .menu-vehicles-card {
        display: grid;
        grid-template-columns: 150px 1fr;
        align-items: center;
        column-gap: 18px;
        text-align: left;
    }

    .menu-vehicles-card-body {
        align-items: flex-start;
    }

    .menu-vehicles-card img {
        width: 150px;
        height: 84px;
        margin-bottom: 0;
    }

    .menu-vehicles-card h3 {
        margin: 0 0 6px;
    }

    .menu-vehicles-links {
        justify-content: flex-start;
        gap: 16px;
        flex-wrap: wrap;
    }
}

@media (max-width: 281px) {
    #carousel-secondary.is-vehicle-secondary {
        white-space: normal;
        line-height: 1.2;
        flex: 1 1 0;
        min-width: 0;
        min-height: 48px;
    }
}

@media (max-width: 404px) {
    .hero-carousel-text h1.is-fsd-slide-title {
        max-width: 18ch;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.24;
    }

    #carousel-secondary.is-fsd-secondary {
        white-space: normal;
        line-height: 1.2;
        flex: 1 1 0;
        min-width: 0;
        min-height: 48px;
    }
}

@media (max-width: 227px) {
    #carousel-primary.is-vehicle-primary {
        white-space: normal;
        line-height: 1.2;
        flex: 1 1 0;
        min-width: 0;
        min-height: 48px;
    }
}

@media (max-width: 398px) {
    #carousel-primary.is-fsd-primary {
        white-space: normal;
        line-height: 1.2;
        flex: 1 1 0;
        min-width: 0;
        min-height: 48px;
    }
}
