/* Marque iPad landscape composition: 11-inch iPad Pro and nearby widths. */
@media (min-width: 981px) and (max-width: 1366px) and (max-height: 1024px) and (orientation: landscape) {
  :root {
    --ipad-landscape-gutter: 34px;
    --ipad-landscape-header-offset: 96px;
  }

  #vehicles,
  #calendar,
  #vault,
  #plans,
  #faq,
  #download {
    scroll-margin-top: var(--ipad-landscape-header-offset);
  }

  .v3-hero[data-mobile-scroll-story],
  .tablet-lineup-story {
    height: 205svh;
    min-height: 205svh;
  }

  .tablet-lineup-sticky {
    display: block;
    height: 100svh;
    min-height: 680px;
    padding: 0;
  }

  .tablet-lineup-heading {
    position: absolute;
    z-index: 4;
    top: clamp(82px, 12svh, 100px);
    right: 6vw;
    left: 6vw;
    width: auto;
    margin: 0;
    opacity: var(--lineup-heading-opacity, 0);
    transform: translateY(var(--lineup-heading-y, 34px));
    will-change: opacity, transform;
  }

  .tablet-lineup-heading h1 {
    max-width: none;
    font-size: clamp(54px, 5vw, 68px);
    line-height: .9;
  }

  .tablet-lineup-scene {
    position: absolute;
    top: clamp(150px, 22svh, 178px);
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
  }

  .tablet-lineup-scene > img {
    object-position: center 47%;
    transform: translateY(clamp(-34px, -4svh, -22px)) scale(var(--lineup-image-scale, 1.52));
    transform-origin: 50% 48%;
    will-change: transform;
  }

  .tablet-lineup-cards {
    display: block;
    padding: 0;
    transform: none;
  }

  .tablet-car-profile {
    position: absolute;
    bottom: clamp(22px, 3.4svh, 32px);
    width: clamp(250px, 24.5vw, 320px);
    max-width: none;
  }

  .tablet-car-profile__identity {
    height: 88px;
    min-height: 88px;
  }

  .tablet-car-profile__identity strong {
    font-size: clamp(16px, 1.5vw, 20px);
  }

  .tablet-car-profile__dates div {
    padding: 7px 7px 8px;
  }

  .tablet-car-profile__dates small {
    font-size: 6px;
  }

  .tablet-car-profile__dates strong {
    font-size: clamp(8px, .76vw, 10px);
    letter-spacing: 0;
  }

  .tablet-car-profile--mercedes {
    left: 24%;
    justify-self: auto;
    transform: translate(-50%, var(--lineup-mercedes-y, 140px));
  }

  .tablet-car-profile--bmw {
    left: 49%;
    justify-self: auto;
    transform: translate(-50%, var(--lineup-bmw-y, 170px));
  }

  .tablet-car-profile--porsche {
    left: 75%;
    justify-self: auto;
    transform: translate(-50%, var(--lineup-porsche-y, 200px));
  }

  .v3-manifesto {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
    column-gap: 64px;
    row-gap: 12px;
    padding: 64px var(--ipad-landscape-gutter) 72px;
  }

  .v3-manifesto .v3-eyebrow {
    grid-column: 1;
    grid-row: 1;
  }

  .v3-manifesto h2 {
    grid-column: 1;
    grid-row: 2;
    font-size: clamp(52px, 5.1vw, 62px);
  }

  .v3-manifesto-copy {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    max-width: 500px;
    margin: 0;
    font-size: 16px;
  }

  .v3-app-section {
    display: block;
    padding: 74px var(--ipad-landscape-gutter) 82px;
  }

  .v3-app-copy {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(400px, 1.1fr);
    column-gap: 64px;
    align-items: start;
    max-width: none;
  }

  .v3-app-copy > .v3-eyebrow,
  .v3-app-copy > h2,
  .v3-app-copy > p {
    grid-column: 1;
  }

  .v3-app-copy > h2 {
    font-size: clamp(48px, 4.8vw, 58px);
  }

  .v3-app-copy > p:not(.v3-eyebrow) {
    max-width: 36ch;
    font-size: 16px;
    line-height: 1.52;
  }

  .v3-app-copy .v3-specs {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
    margin: 0;
  }

  .v3-specs div {
    padding: 18px 0;
  }

  .v6-signals-section {
    padding: 68px var(--ipad-landscape-gutter) 84px;
  }

  .v6-signals-top {
    grid-template-columns: minmax(310px, .78fr) minmax(0, 1.22fr);
    gap: 44px;
  }

  .v6-signals-top .v4-rail-heading {
    top: 108px;
    padding-top: 4px;
  }

  .v6-signals-preview .v6-featured-hero {
    min-height: 174px;
  }

  .v6-signals-preview {
    gap: 12px;
  }

  .v6-signals-preview .v6-calendar-card {
    grid-template-columns: minmax(0, 1.28fr) minmax(218px, .72fr);
    align-items: stretch;
  }

  .v6-signals-preview .v6-calendar-main {
    padding: 14px 18px 8px;
  }

  .v6-calendar-heading > strong {
    margin-top: 12px;
    font-size: 24px;
  }

  .v6-calendar-heading > p {
    max-width: none;
    margin: 9px 0 10px;
  }

  .v6-calendar-heading > p button {
    width: 30px;
    height: 30px;
    font-size: 20px;
  }

  .v6-calendar-weekdays {
    margin-bottom: 5px;
  }

  .v6-calendar-grid {
    gap: 2px 1px;
  }

  .v6-calendar-grid > .v6-calendar-day {
    min-height: 23px;
    border-radius: 9px;
    font-size: 10px;
  }

  .v6-calendar-grid > .v6-calendar-day.has-event::after {
    bottom: 1px;
    width: 4px;
    height: 4px;
  }

  .v6-signals-preview .v6-calendar-events {
    min-height: 0;
    padding: 20px 18px;
  }

  .v6-calendar-events article {
    grid-template-columns: 7px minmax(0, 1fr);
    gap: 8px;
    padding: 12px 0;
  }

  .v6-calendar-events article > b {
    display: none;
  }

  .v8-add-section {
    display: grid;
    grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
    column-gap: 44px;
    row-gap: 18px;
    width: 100%;
    padding: 78px var(--ipad-landscape-gutter) 88px;
    align-items: start;
  }

  .v8-add-intro {
    position: sticky;
    top: 108px;
    grid-column: 1;
    grid-row: 1 / span 2;
    display: block;
    padding-top: 4px;
  }

  .v8-add-intro h2 {
    max-width: 8ch;
    margin-top: 16px;
    font-size: clamp(52px, 5.2vw, 62px);
    line-height: .94;
  }

  .v8-add-intro > p:last-child {
    max-width: 31ch;
    margin-top: 26px;
    font-size: 15px;
    line-height: 1.52;
  }

  .v8-flow-tabs {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    padding: 4px;
    border-radius: 18px;
  }

  .v8-flow-tabs button {
    min-height: 38px;
    padding: 0 9px;
    border-radius: 14px;
    font-size: 11px;
  }

  .v8-flow-layout {
    grid-column: 2;
    grid-row: 2;
    display: block;
    min-width: 0;
  }

  .v8-flow-copy {
    display: none;
  }

  .v8-app-surface,
  .v8-flow-panel {
    height: 458px;
    min-height: 0;
  }

  .v8-app-surface {
    width: 100%;
    border-radius: 24px;
  }

  .v8-flow-panel {
    padding: 0 20px 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }

  .v8-flow-panel::-webkit-scrollbar {
    display: none;
  }

  .v8-app-header {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    min-height: 52px;
  }

  .v8-app-header strong {
    font-size: 14px;
  }

  .v8-registration-screen {
    max-width: 390px;
    padding: 18px 4px 16px;
  }

  .v8-registration-copy {
    margin: 16px 0 14px;
  }

  .v8-registration-copy h3 {
    max-width: 330px;
    margin-top: 8px;
    font-size: 28px;
  }

  .v8-registration-demo-plate {
    width: min(100%, 340px);
    height: 66px;
    border-radius: 14px;
    font-size: 26px;
    line-height: 66px;
  }

  .v8-registration-form > button {
    min-height: 48px;
    margin-top: 16px;
    border-radius: 14px;
  }

  .v8-lookup-result {
    margin-top: 12px;
    padding: 14px;
    border-radius: 14px;
  }

  .v8-lookup-result button {
    min-height: 42px;
    margin-top: 12px;
  }

  .v8-profile-photo {
    min-height: 180px;
    margin-top: 14px;
    border-radius: 16px;
  }

  .v8-profile-identity {
    padding: 16px 0 14px;
  }

  .v8-profile-identity h3 {
    font-size: 22px;
  }

  .v8-profile-identity span {
    margin-top: 8px;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
  }

  .v8-date-settings > div {
    min-height: 64px;
  }

  .v8-date-settings strong {
    margin-top: 4px;
    font-size: 16px;
  }

  .v8-profile-fields {
    margin-top: 14px;
  }

  .v8-profile-field {
    padding: 14px 0 12px;
  }

  .v8-profile-field strong {
    margin-top: 6px;
    font-size: 16px;
  }

  .v8-vault-heading {
    padding: 22px 4px 16px;
  }

  .v8-vault-heading h3 {
    font-size: 32px;
  }

  .v8-vault-card {
    padding: 18px;
  }

  .v8-vault-locked h4 {
    margin: 24px 0 16px;
    font-size: 22px;
  }

  .v8-vault-locked > button,
  .v8-panel-next,
  .v8-log-add,
  .v8-log-actions button:last-child {
    min-height: 48px;
    border-radius: 14px;
  }

  .v8-vault-folders {
    margin-top: 18px;
  }

  .v8-vault-folders > div {
    min-height: 64px;
  }

  .v8-log-total {
    padding: 24px 0 16px;
  }

  .v8-log-total strong {
    font-size: 24px;
  }

  .v8-log-add {
    margin-bottom: 12px;
  }

  .v8-log-list {
    gap: 8px;
  }

  .v8-log-list article {
    min-height: 68px;
    padding: 0 14px;
    border-radius: 14px;
  }

  .v4-plans {
    padding: 60px var(--ipad-landscape-gutter) 70px;
  }

  .v4-plans-intro {
    margin-bottom: 38px;
  }

  .v4-plans h2 {
    font-size: clamp(48px, 4.8vw, 58px);
  }

  .v4-plan-grid {
    gap: 14px;
  }

  .v4-plan-card,
  .v7-plan-card {
    min-height: 356px;
    padding: 25px 23px;
    border-radius: 20px;
  }

  .v9-profile-section {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(390px, 1.1fr);
    column-gap: 48px;
    width: min(calc(100% - 68px), 1126px);
    margin-top: 42px;
    padding-bottom: 48px;
  }

  .v9-profile-card {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    margin: 0;
    padding: 30px;
    border-radius: 24px;
  }

  .v9-profile-card-heading h2 {
    font-size: 46px;
  }

  .v9-profile-owner {
    margin-top: 54px;
  }

  .v9-profile-benefits {
    grid-column: 1;
    grid-row: 1;
    display: block;
    margin-top: 0;
  }

  .v9-profile-benefits-intro h2 {
    font-size: clamp(44px, 4.2vw, 52px);
  }

  .v9-profile-benefits-intro > p:last-child {
    margin-top: 20px;
    font-size: 15px;
  }

  .v9-benefit-list {
    margin-top: 28px;
  }

  .v9-benefit-list article {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 0;
  }

  .v9-benefit-list h3 {
    font-size: 16px;
  }

  .v9-benefit-list p {
    margin-top: 5px;
    font-size: 13px;
  }

  .v9-faq {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr);
    gap: 64px;
    margin-top: 64px;
  }

  .v9-faq-intro h2 {
    font-size: 48px;
  }

  .v9-faq-intro > p:last-child {
    margin-top: 20px;
    font-size: 15px;
  }

  .v9-faq-list summary {
    min-height: 64px;
    font-size: 15px;
  }

  .v5-simulator-bottom {
    display: grid;
    grid-template-columns: minmax(320px, .82fr) minmax(430px, 1.18fr);
    gap: 48px;
    width: min(calc(100% - 68px), 1126px);
    margin: 0 auto;
    padding: 46px 0 64px;
    overflow: visible;
    place-items: center stretch;
  }

  .v5-simulator-bottom .v5-simulator-stage {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    max-width: none;
    min-height: 720px;
  }

  .v10-download-cta {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    text-align: left;
  }

  .v10-download-cta h2 {
    font-size: clamp(50px, 5vw, 60px);
  }

  .v10-download-cta > .v10-download-intro {
    margin-right: 0;
    margin-left: 0;
    font-size: 16px;
  }

  .v10-store-badges {
    justify-content: flex-start;
    margin-top: 9px;
  }

  .v10-store-status {
    margin-top: 22px;
  }

  .waitlist-form {
    margin-right: 0;
    margin-left: 0;
    padding: 20px;
  }
}

/* Visual refresh: iPad landscape keeps the app showcase broad enough to read,
   but prevents the shared <=1100px stack from turning it into a long phone. */
@media (min-width: 981px) and (max-width: 1366px) and (max-height: 1024px) and (orientation: landscape) {
  :root {
    --ipad-landscape-gutter: clamp(32px, 3.4vw, 46px);
  }

  .site-header.v3-header,
  .site-header.v3-header.is-scrolled,
  .site-header.v3-header.compact {
    top: max(10px, env(safe-area-inset-top));
    height: 68px;
  }

  .site-header.v3-header .brand-link,
  .site-header.v3-header .site-nav a,
  .site-header.v3-header .header-store-links a {
    min-height: 44px;
  }

  .site-header.v3-header .site-nav a,
  .site-header.v3-header .header-store-links a {
    display: grid;
    place-items: center;
  }

  .tablet-lineup-sticky::after {
    content: none !important;
    display: none !important;
  }

  .v3-hero[data-mobile-scroll-story] {
    border-bottom: 0;
  }

  .v3-manifesto {
    min-height: 520px;
    border: 0;
    border-radius: 0;
    background:
      linear-gradient(90deg, rgba(2, 2, 3, .25), rgba(2, 2, 3, .05) 55%, rgba(2, 2, 3, .35)),
      url("./assets/marque-material-black-metal-rings.png") 52% 50% / cover no-repeat,
      #020203;
    box-shadow: none;
    backdrop-filter: none;
  }

  .v3-manifesto::before,
  .v3-manifesto::after {
    content: none;
    display: none;
  }

  .v6-signals-section,
  .v8-add-section,
  .v4-plans,
  .v9-profile-section {
    background: #020203;
  }

  .v6-signals-top {
    grid-template-columns: minmax(290px, .72fr) minmax(0, 1.28fr);
    gap: clamp(34px, 4vw, 52px);
  }

  .v6-signals-preview {
    width: 100%;
    max-width: none;
  }

  .v6-signals-preview .v6-calendar-card {
    grid-template-columns: minmax(350px, 1.22fr) minmax(210px, .78fr);
  }

  .v6-calendar-heading > p button {
    width: 44px;
    height: 44px;
    min-height: 44px;
  }

  .v6-calendar-grid > .v6-calendar-day {
    display: grid;
    width: 100%;
    height: 44px;
    min-height: 44px;
    justify-self: stretch;
    place-items: center;
    font-size: 11px;
  }

  .v8-add-section {
    grid-template-columns: minmax(280px, .7fr) minmax(570px, 1.3fr);
    column-gap: clamp(34px, 4vw, 56px);
    row-gap: 12px;
    max-width: 1240px;
    margin-inline: auto;
  }

  .v8-add-intro {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .v8-flow-tabs {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    max-width: 760px;
    justify-self: center;
  }

  .v8-flow-tabs button {
    min-height: 44px;
  }

  .v8-vault-pin-row > button,
  .v8-vault-folders button,
  .v8-log-categories button,
  .v8-log-actions button,
  .v8-add-receipt,
  .v9-profile-edit {
    min-height: 44px;
  }

  .v8-date-settings > div > button {
    position: relative;
    width: 52px;
    min-width: 52px;
    height: 44px;
    min-height: 44px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .v8-date-settings > div > button::before {
    position: absolute;
    top: 7px;
    right: 0;
    bottom: 7px;
    left: 0;
    border-radius: 999px;
    background: #232427;
    content: "";
  }

  .v8-date-settings > div > button.is-on {
    background: transparent;
  }

  .v8-date-settings > div > button.is-on::before {
    background: #333437;
  }

  .v8-date-settings > div > button span {
    top: 10px;
    left: 4px;
    width: 24px;
    height: 24px;
  }

  .v8-date-settings > div > button.is-on span {
    transform: translateX(20px);
  }

  .v8-flow-layout {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    max-width: 760px;
    justify-self: center;
  }

  .v8-flow-copy {
    display: none;
  }

  .v8-app-surface,
  .v8-flow-panel {
    height: 500px;
    min-height: 0;
  }

  .v8-flow-panel {
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }

  .v8-flow-panel::-webkit-scrollbar {
    display: none;
  }

  .v8-registration-screen {
    min-height: 420px;
    max-width: 500px;
    margin-inline: auto;
  }

  .v8-registration-form {
    width: min(100%, 480px);
  }

  .v4-plans {
    display: block;
    width: 100%;
    max-width: none;
  }

  .v4-plans-intro {
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
    gap: 38px;
    max-width: 1180px;
    margin: 0 auto 32px;
  }

  .v4-plan-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 1180px;
  }

  .v4-plan-card.v7-plan-card {
    min-height: 430px;
    padding: 26px 24px;
  }

  .v4-plan-card.v7-plan-card .v4-plan-label {
    font-size: 30px;
  }

  .v4-plan-card.v7-plan-card > strong {
    margin-top: 20px;
    font-size: 38px;
  }

  .v4-plan-card.v7-plan-card ul {
    padding-top: 46px;
  }

  .v4-plan-card.v7-plan-card,
  .v4-plan-card.v7-plan-card:hover,
  .v4-plan-card.v7-plan-card:active,
  .v4-plan-card.v7-plan-card:focus-within {
    transform: none;
  }

  .v9-profile-section {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 72px var(--ipad-landscape-gutter) 68px;
  }

  .v9-profile-story {
    display: grid;
    grid-template-columns: minmax(290px, .72fr) minmax(0, 1.28fr);
    gap: 16px clamp(36px, 4vw, 56px);
    align-items: start;
    max-width: 1180px;
  }

  .v9-profile-card {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    max-width: none;
  }

  .v9-profile-benefits-intro {
    position: sticky;
    top: 102px;
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .v9-profile-benefits {
    display: contents;
  }

  .v9-benefit-list {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    max-width: none;
  }

  .v9-benefit-list article {
    min-height: 94px;
    padding: 16px 20px;
  }

  .v9-faq {
    grid-template-columns: minmax(290px, .72fr) minmax(0, 1.28fr);
    gap: clamp(36px, 4vw, 56px);
    max-width: 1180px;
    margin-top: 68px;
    padding-top: 58px;
  }

  .v9-faq-intro {
    position: sticky;
    top: 102px;
  }

  .v9-faq-list summary {
    min-height: 64px;
  }

  .v5-simulator-bottom {
    grid-template-columns: minmax(340px, .8fr) minmax(430px, 1.2fr);
    gap: clamp(30px, 4vw, 52px);
    width: min(calc(100% - 48px), 1180px);
    min-height: 0;
    padding: 38px 28px 46px;
  }

  .v5-simulator-bottom .v5-simulator-stage {
    grid-column: 2;
    grid-row: 1;
    height: 620px;
    min-height: 620px;
    max-height: 620px;
  }

  .v5-device-shell,
  .v5-simulator-stage:hover .v5-device-shell {
    top: 12px;
    right: auto;
    left: 50%;
    transform: translateX(-50%) scale(.82);
    transform-origin: top center;
  }

  .v10-download-cta {
    grid-column: 1;
    grid-row: 1;
    padding: 18px;
  }

  .v10-download-cta h2 {
    font-size: clamp(43px, 4.4vw, 54px);
  }

  .v5-simulator-bottom .waitlist-options span,
  .v5-simulator-bottom .waitlist-consent,
  .v5-simulator-bottom .waitlist-form input[type="email"],
  .v5-simulator-bottom .waitlist-form button {
    min-height: 44px;
  }

  .mobile-command-dock {
    display: none !important;
  }
}
