html { scroll-behavior: smooth; scroll-padding-top: 40px; scroll-padding-bottom: 130px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.section-wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: clamp(24px, 6.4vw, 100px); }
.section-title { margin: 0; font-size: clamp(36px, 3.7vw, 60px); font-weight: 600; letter-spacing: -.045em; line-height: 1.12; text-wrap: balance; }
.section-title span { display: block; }
.section-label { margin: 0 0 24px; color: #c0c6cc; font-size: 13px; font-weight: 500; }
.body-copy { color: #aeb6bf; font-size: clamp(15px, 1.2vw, 17px); font-weight: 400; line-height: 1.8; }
.section-heading { max-width: 860px; margin: 0 auto 65px; }
.section-heading .body-copy { max-width: 620px; margin: 24px auto 0; }
.centered-heading { text-align: center; }
.closing-line { color: #f2f5f7; font-size: 15px; line-height: 1.8; }
.text-link { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; font-size: 13px; font-weight: 600; text-decoration: underline; text-decoration-color: #ffffff40; text-underline-offset: 6px; transition: color 160ms ease; }
.quiet-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; color: #c0c6cc; font-size: 13px; text-decoration: underline; text-decoration-color: #ffffff40; text-underline-offset: 5px; }
.action-button { display: inline-flex; justify-content: center; align-items: center; gap: 11px; min-height: 56px; padding: 17px 28px; border: 1px solid #ffffff28; border-radius: 7px; background: #dc3028; color: white; font: 600 14px/1.4 "Montserrat", sans-serif; transition: background 160ms ease, transform 160ms ease; text-align: center; }
.action-button svg { flex: none; }
.section-cta { display: flex; align-items: center; flex-direction: column; gap: 18px; margin-top: 55px; text-align: center; }
.section-cta > p { margin: 0; color: #c0c6cc; font-size: 14px; }

/* Recognition: give the owner a reason to keep reading. */
.feeling-section { padding-top: 115px; padding-bottom: 0; }
.feeling-copy { display: grid; grid-template-columns: 1.12fr 1fr; gap: clamp(45px, 7vw, 110px); align-items: start; }
.feeling-copy .section-title { max-width: 610px; }
.feeling-body .body-copy { margin: 0 0 20px; }
.feeling-body .closing-line { max-width: 430px; margin-bottom: 0; }
.benefit-strip { display: flex; justify-content: space-between; gap: 24px; margin: 74px 0 0; padding: 28px 0; list-style: none; border-top: 1px solid #ffffff1c; border-bottom: 1px solid #ffffff1c; }
.benefit-strip li { display: flex; align-items: center; gap: 12px; color: #c9cfd5; font-size: 13px; line-height: 1.5; }
.benefit-strip svg { flex: none; color: #ff746b; }

/* Mechanism and an actual, locally generated sound sketch. */
.sound-section { padding-block: 120px 110px; background: radial-gradient(ellipse at 88% 38%, #47161422, transparent 52%); }
.sound-layout { display: grid; grid-template-columns: 1fr 1.12fr; gap: 72px 80px; align-items: center; }
.sound-copy .body-copy { margin: 27px 0 0; }
.sound-copy .sound-closing { max-width: 360px; margin-top: 22px; }
.sound-difference { max-width: 400px; margin: 24px 0 0; color: #fff; font-size: 17px; font-weight: 500; line-height: 1.7; }
.sound-lab { min-width: 0; overflow: hidden; border: 1px solid #ffffff24; border-radius: 16px; background: linear-gradient(145deg, #171b21, #090c10 62%); box-shadow: 0 30px 80px #0005; }
.lab-topline { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 24px 28px; color: #aeb6bf; font-size: 11px; }
.lab-label { display: inline-flex; align-items: center; gap: 8px; }
.live-dot { display: inline-block; width: 6px; height: 6px; flex: none; border-radius: 50%; background: #ff4a40; }
.sound-visual { position: relative; height: 184px; overflow: hidden; }
.wave-grid { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 49px, #ffffff05 49px 50px), repeating-linear-gradient(0deg, transparent 0 44px, #ffffff06 44px 45px); mask-image: linear-gradient(90deg, transparent, black 20%, black 80%, transparent); }
.sound-wave { position: absolute; inset: 0; width: 100%; height: 138px; overflow: visible; }
.sound-wave path { fill: none; stroke: url(#wave-fade); stroke-width: 2; }
.sound-wave .wave-glow { stroke-width: 7; opacity: .3; filter: blur(5px); }
.rev-readout { position: absolute; bottom: 0; left: 0; width: 100%; display: flex; justify-content: center; align-items: baseline; gap: 9px; font-variant-numeric: tabular-nums; }
.rev-readout > span:first-child { color: #f2f5f7; font-size: 34px; font-weight: 500; letter-spacing: -.04em; }
.rev-readout > span:last-child { color: #9ca6b0; font-size: 10px; }
.lab-content { padding: 24px 28px 26px; }
.lab-content h3 { margin: 0 0 10px; font-size: 19px; font-weight: 500; letter-spacing: -.025em; }
.lab-content > p:not(.demo-note):not(.sr-only) { margin: 0; color: #aeb6bf; font-size: 12px; line-height: 1.7; }
.engine-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin: 23px 0; padding: 4px; border: 1px solid #ffffff18; border-radius: 8px; background: #05060866; }
.engine-switch button { min-height: 44px; padding: 8px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #aeb6bf; font-size: 12px; cursor: pointer; }
.engine-switch button[aria-pressed="true"] { background: #ffffff12; border-color: #ffffff24; color: #fff; }
.range-label { display: block; color: #c2c9d0; font-size: 11px; }
.rev-slider { --input-position: 30%; display: block; width: 100%; height: 36px; margin: 5px 0 0; appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; }
.rev-slider::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(90deg, #ff5d53 var(--input-position), #38404a var(--input-position)); }
.rev-slider::-moz-range-track { height: 3px; border-radius: 2px; background: linear-gradient(90deg, #ff5d53 var(--input-position), #38404a var(--input-position)); }
.rev-slider::-webkit-slider-thumb { width: 20px; height: 20px; margin-top: -8.5px; appearance: none; -webkit-appearance: none; border: 4px solid #15191f; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px #737d88; }
.rev-slider::-moz-range-thumb { width: 12px; height: 12px; border: 4px solid #15191f; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px #737d88; }
.rev-slider:focus-visible { outline: 2px solid #fff; outline-offset: 5px; border-radius: 3px; }
.range-extents { display: flex; justify-content: space-between; color: #9ca6b0; font-size: 10px; }
.sound-toggle { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 46px; margin-top: 22px; border: 1px solid #ffffff55; border-radius: 6px; background: #ffffff0d; color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; }
.sound-toggle[aria-pressed="true"] { background: #dc30281f; border-color: #ff756d80; }
.sound-toggle:disabled { cursor: default; opacity: .55; }
.demo-note { margin: 16px 0 0; color: #929da8; font-size: 10px; line-height: 1.65; }
.driving-moments { grid-column: 1/-1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 55px; border-top: 1px solid #ffffff1c; padding-top: 38px; }
.moment-line { display: block; width: 115px; height: 34px; margin-bottom: 25px; }
.moment-line path { fill: none; stroke: #ff746b; stroke-width: 1.5; }
.driving-moments h3, .cockpit-benefits h3 { margin: 0 0 12px; font-size: 16px; font-weight: 500; letter-spacing: -.025em; }
.driving-moments p, .cockpit-benefits p { margin: 0; max-width: 290px; color: #aeb6bf; font-size: 13px; line-height: 1.75; }

/* Six named engines, with bespoke mechanical illustrations and comparable profile specs. */
.engines-section { padding-block: 105px 115px; }
.engine-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 58px 36px; }
.engine-profile { min-width: 0; display: flex; flex-direction: column; }
.engine-art { position: relative; display: flex; justify-content: center; align-items: center; height: 255px; isolation: isolate; background: radial-gradient(ellipse at 50% 63%, #30384244, transparent 64%); }
.engine-watermark { position: absolute; z-index: -1; top: 4px; left: 0; width: 100%; text-align: center; font-size: clamp(100px, 11vw, 156px); font-weight: 600; letter-spacing: -.085em; line-height: 1; color: #ffffff0a; }
.engine-art img { display: block; width: 100%; max-width: 360px; height: auto; filter: drop-shadow(0 16px 12px #0008); }
.engine-copy { display: flex; flex-direction: column; flex: 1; padding-top: 24px; border-top: 1px solid #ffffff24; }
.engine-copy h3 { margin: 0 0 20px; font-size: clamp(26px, 2.5vw, 34px); font-weight: 500; letter-spacing: -.04em; }
.engine-brand { display: block; margin-bottom: 7px; color: #aeb6bf; font-size: 13px; font-weight: 400; letter-spacing: 0; }
.engine-specs { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin: 0; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.engine-specs dd { margin: 0; }
.engine-specs dd span { color: #aeb6bf; font-size: 11px; font-weight: 400; }
.engine-detail { margin: 7px 0 23px; color: #aeb6bf; font-size: 11px; }
.engine-descriptor { margin: 0 0 12px; color: #fff; font-size: 13px; font-weight: 500; line-height: 1.6; }
.engine-description { margin: 0 0 16px; color: #aeb6bf; font-size: 13px; line-height: 1.8; }
.engine-preview-link { align-self: flex-start; margin-top: auto; color: #f2f5f7; }
.engine-preview-link svg { color: #ff746b; }
.engine-note { margin: 38px auto 0; color: #929da8; text-align: center; font-size: 11px; line-height: 1.7; }

/* A capture of the existing cockpit keeps the page independent of app development. */
.cockpit-section { padding-block: 110px; background: #0c0f13; border-block: 1px solid #ffffff0c; }
.cockpit-heading { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: end; margin-bottom: 62px; }
.cockpit-heading .body-copy { margin: 0 0 3px; }
.cockpit-frame { overflow: hidden; border: 1px solid #ffffff35; border-radius: 17px; box-shadow: 0 25px 70px #0006; background: #050608; }
.cockpit-frame-bar { display: flex; justify-content: space-between; align-items: center; min-height: 50px; padding: 0 22px; border-bottom: 1px solid #ffffff12; background: #161a20; color: #b7c0ca; font-size: 11px; }
.cockpit-frame-bar > span { display: flex; align-items: center; gap: 9px; }
.cockpit-frame-bar a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
.cockpit-preview-link { display: block; }
.cockpit-preview { display: block; width: 100%; height: auto; border: 0; background: #050608; }
.cockpit-caption { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 10px; color: #9ca6b0; font-size: 11px; }
.cockpit-caption .text-link { font-size: 11px; color: #e2e8ed; }
.cockpit-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; margin-top: 50px; }

/* Remove perceived friction with a clear, genuinely sequential setup. */
.setup-section { max-width: none; padding-block: 105px; background: #eef0f2; color: #171a20; }
.setup-section .body-copy { color: #5c646d; }
.setup-section .section-heading { margin-bottom: 56px; }
.hardware-note { margin-top: 22px; font-size: 14px; font-weight: 500; line-height: 1.65; }
.setup-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 65px; max-width: 1120px; margin: 0 auto; padding: 0; list-style: none; }
.setup-steps li { position: relative; }
.setup-steps li:not(:last-child)::after { position: absolute; top: 23px; left: 65px; width: calc(100% - 34px); height: 1px; background: #171a202b; content: ""; }
.step-number { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-bottom: 25px; border: 1px solid #171a2035; border-radius: 50%; font-size: 16px; font-weight: 500; }
.setup-steps h3 { margin: 0 0 12px; font-size: 18px; font-weight: 600; letter-spacing: -.025em; }
.setup-steps p { max-width: 280px; margin: 0; color: #5c646d; font-size: 13px; line-height: 1.8; }
.setup-section .quiet-link { color: #505963; text-decoration-color: #171a2040; }
.setup-section a:focus-visible { outline-color: #171a20; }

.faq-section { display: grid; grid-template-columns: .9fr 1.2fr; gap: 90px; padding-block: 120px; }
.faq-section .section-title { max-width: 390px; font-size: clamp(32px, 3.1vw, 46px); }
.faq-list { min-width: 0; }
.faq-list details { border-bottom: 1px solid #ffffff24; }
.faq-list details:first-child { border-top: 1px solid #ffffff24; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 25px; min-height: 80px; padding-block: 22px; list-style: none; font-size: 14px; font-weight: 500; line-height: 1.6; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.faq-plus { position: relative; width: 14px; height: 14px; flex: none; }
.faq-plus::before, .faq-plus::after { position: absolute; top: 6px; left: 0; width: 14px; height: 1px; content: ""; background: #c8d0d8; }
.faq-plus::after { transform: rotate(90deg); transition: transform 180ms ease; }
details[open] .faq-plus::after { transform: rotate(0deg); }
.faq-list details > p { max-width: 550px; margin: 0; padding: 0 32px 25px 0; color: #aeb6bf; font-size: 13px; line-height: 1.85; }

.closing-section { position: relative; isolation: isolate; overflow: hidden; }
.closing-road { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #050608 0%, #050608bf 32%, #050608b3 67%, #050608 100%), url('../pics/tesla-revmeup-cockpit.webp') center 30%/cover no-repeat; }
.closing-content { display: flex; align-items: center; flex-direction: column; padding-block: 100px 130px; text-align: center; }
.closing-content .section-title { font-size: clamp(36px, 4.2vw, 64px); text-shadow: 0 3px 30px #0008; }
.closing-content .body-copy { max-width: 570px; margin: 28px 0 34px; color: #c0c6cc; }
.closing-button { min-width: 310px; min-height: 65px; font-size: 16px; box-shadow: 0 0 35px #dc302826; }
.closing-content .quiet-link { margin-top: 15px; }
.site-footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 40px; row-gap: 30px; padding-top: 38px; padding-bottom: 160px; border-top: 1px solid #ffffff16; }
.footer-wordmark { font-size: 16px; letter-spacing: 3px; }
.footer-wordmark svg { width: 24px; }
.site-footer > p { margin: 0; color: #9ca6b0; font-size: 12px; }
.site-footer nav { display: flex; gap: 26px; font-size: 12px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer small { grid-column: 1/-1; color: #89939e; font-size: 10px; }

.install-dock { position: fixed; z-index: 10; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%; display: flex; align-items: center; justify-content: space-between; gap: 28px; width: min(900px, calc(100% - 48px)); padding: 13px 14px 13px 28px; transform: translateX(-50%); border: 1px solid #ffffff35; border-radius: 12px; background: #12171ef2; box-shadow: 0 10px 55px #0008; backdrop-filter: blur(20px); }
.dock-copy { display: flex; flex-direction: column; gap: 6px; }
.dock-copy strong { font-size: 15px; font-weight: 500; letter-spacing: -.02em; }
.dock-copy span { color: #9eabb8; font-size: 11px; }
.dock-button { min-width: 254px; min-height: 52px; padding: 14px 24px; }

@media (hover: hover) {
    .action-button:hover { background: #bf251e; transform: translateY(-2px); }
    .text-link:hover, .quiet-link:hover { color: #ff938c; }
    .engine-switch button:hover { background: #ffffff0d; color: #fff; }
    .sound-toggle:hover { background: #ffffff16; }
    .faq-list summary:hover { color: #ff938c; }
}

@media (max-width: 1100px) {
    .sound-layout { column-gap: 40px; grid-template-columns: 1fr 1fr; }
    .section-wrap { padding-inline: 36px; }
    .lab-topline, .lab-content { padding-inline: 22px; }
    .engine-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 42px 30px; }
    .engine-art { height: 220px; }
    .cockpit-heading { gap: 40px; }
    .faq-section { gap: 50px; }
    .site-footer { column-gap: 25px; }
}

@media (max-width: 767px) {
    html { scroll-padding-top: 24px; scroll-padding-bottom: 120px; }
    .section-wrap { padding-inline: 24px; }
    .section-title { font-size: clamp(32px, 8.5vw, 46px); letter-spacing: -.045em; }
    .section-label { margin-bottom: 18px; font-size: 12px; }
    .section-heading { margin-bottom: 36px; }
    .section-heading .body-copy { margin-top: 20px; }
    .body-copy { font-size: 14px; line-height: 1.85; }
    .feeling-section { padding-top: 64px; }
    .feeling-copy { grid-template-columns: 1fr; gap: 28px; }
    .feeling-body .closing-line { font-size: 14px; }
    .benefit-strip { flex-direction: column; gap: 20px; margin-top: 40px; padding-block: 28px; }
    .benefit-strip li { font-size: 12px; }
    .sound-section { padding-block: 70px; }
    .sound-layout { grid-template-columns: 1fr; gap: 36px; }
    .sound-copy .body-copy { margin-top: 22px; }
    .sound-difference { font-size: 15px; }
    .sound-copy .sound-closing { max-width: none; }
    .sound-lab { border-radius: 12px; }
    .lab-topline { padding: 20px 20px 5px; font-size: 10px; }
    .lab-content { padding: 23px 20px; }
    .lab-content h3 { font-size: 18px; }
    .sound-visual { height: 166px; }
    .sound-wave { height: 127px; }
    .rev-slider { height: 44px; }
    .driving-moments { grid-template-columns: 1fr; gap: 25px; padding-top: 30px; }
    .driving-moments article { display: grid; grid-template-columns: 70px 1fr; column-gap: 20px; }
    .moment-line { grid-row: 1/3; width: 70px; height: 30px; margin: 4px 0 0; }
    .driving-moments h3 { font-size: 15px; }
    .driving-moments p { max-width: none; font-size: 12px; }
    .engines-section { padding-block: 60px 75px; }
    .engine-grid { grid-template-columns: 1fr; gap: 32px; }
    .engine-art { height: 230px; }
    .engine-art img { width: min(100%, 330px); }
    .engine-watermark { font-size: 145px; }
    .engine-copy { padding-top: 22px; }
    .engine-description { max-width: 450px; }
    .engine-copy h3 { font-size: 28px; }
    .section-cta { margin-top: 36px; gap: 16px; }
    .section-cta .action-button { width: min(100%, 340px); }
    .cockpit-section { padding-block: 70px; }
    .cockpit-heading { grid-template-columns: 1fr; gap: 24px; margin-bottom: 32px; }
    .cockpit-frame { border-radius: 10px; }
    .cockpit-frame-bar { padding-inline: 14px; font-size: 10px; }
    .cockpit-preview { height: auto; }
    .cockpit-caption { align-items: flex-start; flex-direction: column; gap: 2px; margin-top: 17px; font-size: 10px; }
    .cockpit-benefits { grid-template-columns: 1fr; gap: 24px; margin-top: 30px; }
    .cockpit-benefits p { max-width: none; }
    .setup-section { padding-block: 70px; }
    .setup-section .section-heading { margin-bottom: 38px; }
    .hardware-note { font-size: 13px; }
    .setup-steps { grid-template-columns: 1fr; gap: 30px; }
    .setup-steps li { display: grid; grid-template-columns: 40px 1fr; column-gap: 20px; }
    .setup-steps li:not(:last-child)::after { top: 50px; left: 19px; width: 1px; height: calc(100% - 33px); }
    .step-number { grid-row: 1/3; width: 40px; height: 40px; margin: 0; }
    .setup-steps h3 { font-size: 16px; margin-bottom: 8px; }
    .setup-steps p { max-width: none; font-size: 12px; }
    .faq-section { grid-template-columns: 1fr; gap: 34px; padding-block: 70px; }
    .faq-section .section-title { max-width: 420px; font-size: 34px; }
    .faq-list summary { min-height: 74px; padding-block: 21px; gap: 16px; font-size: 13px; }
    .faq-list details > p { padding-right: 5px; font-size: 12px; }
    .closing-content { padding-block: 65px 75px; }
    .closing-content .section-title { font-size: clamp(32px, 8.7vw, 45px); }
    .closing-content .section-title span + span { margin-top: 8px; }
    .closing-content .body-copy { margin-top: 24px; }
    .closing-button { min-width: 0; width: min(100%, 340px); min-height: 61px; font-size: 14px; }
    .site-footer { grid-template-columns: 1fr; gap: 12px; padding-top: 24px; padding-bottom: 135px; }
    .site-footer nav { gap: 30px; margin-top: 8px; }
    .site-footer small { font-size: 9px; }
    .install-dock { width: calc(100% - 24px); padding: 10px; gap: 16px; bottom: max(12px, env(safe-area-inset-bottom)); border-radius: 10px; }
    .dock-copy { padding-left: 6px; }
    .dock-copy strong { font-size: 12px; }
    .dock-copy span { display: none; }
    .dock-button { min-width: 0; padding: 14px 18px; min-height: 52px; font-size: 12px; }
}

@media (max-width: 520px) {
    .dock-copy { display: none; }
    .dock-button { width: 100%; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
