/* ==========================================================================
   Crossline mobile landing — from landing-demos/mobile-redesign
   Official pricing selector (.pricing-selector-card) stays from styles.css.
   Desktop v1 remains in .cx-desk. Archive: landing-archive/v1-20260726/
   ========================================================================== */

.cx-landing .cx-m { display: none; }
.cx-landing .cx-desk { display: block; }

@media (max-width: 900px) {
  html:has(.cx-landing) { font-size: 16px; }

  .cx-landing .cx-desk { display: none !important; }
  .cx-landing .cx-m {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    background: var(--cx-paper);
    color: var(--cx-ink);
    font-family: "Inter", "Montserrat", "Segoe UI", sans-serif;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    position: relative;
  }
  .cx-landing .cx-m.is-ready .cx-m-hero-copy {
    opacity: 1;
    transform: none;
  }
  .cx-landing .cx-m h1,
  .cx-landing .cx-m h2,
  .cx-landing .cx-m h3 {
    font-family: "Montserrat", "Inter", sans-serif;
    color: var(--cx-ink);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0;
    font-weight: 800;
  }

  /* Sticky top bar */
  .cx-landing .cx-m-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: calc(8px + env(safe-area-inset-top, 0px)) 16px 8px;
    background: rgba(249, 247, 242, 0.86);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid rgba(228, 220, 213, 0.7);
  }
  .cx-landing .cx-m-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--cx-ink);
    text-decoration: none;
  }
  .cx-landing .cx-m-brand span { display: flex; flex-direction: column; }
  .cx-landing .cx-m-brand small {
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cx-red);
    margin-top: 3px;
  }
  .cx-landing .cx-m-brand img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(185, 43, 39, 0.22);
  }
  .cx-landing .cx-m-bar-btn {
    appearance: none;
    border: 1.5px solid var(--cx-line);
    background: #fff;
    color: var(--cx-ink);
    font: 700 0.82rem "Montserrat", sans-serif;
    padding: 9px 16px;
    min-height: 40px;
    border-radius: 999px;
    cursor: pointer;
  }

  /* Full-bleed hero */
  .cx-landing .cx-m-hero {
    position: relative;
    min-height: 94vh;
    min-height: 94svh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--cx-navy);
  }
  .cx-landing .cx-m-hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 55% 35%;
  }
  .cx-landing .cx-m-hero-shade {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(25, 36, 54, 0.2) 0%, rgba(25, 36, 54, 0.06) 32%, rgba(25, 36, 54, 0.8) 74%, rgba(25, 36, 54, 0.95) 100%);
  }
  .cx-landing .cx-m-hero-copy {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 28px 20px 34px;
    color: #fff;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .cx-landing .cx-m-brand-mark {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: clamp(2.2rem, 10vw, 3rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin: 0 0 12px;
    color: #fff;
  }
  .cx-landing .cx-m-hero-copy h1 {
    color: #fff;
    font-size: clamp(1.6rem, 7vw, 2rem);
    line-height: 1.12;
    max-width: 15ch;
    margin: 0 0 12px;
  }
  .cx-landing .cx-m-hero-sub {
    margin: 0 0 22px;
    max-width: 30ch;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.98rem;
    line-height: 1.5;
  }
  .cx-landing .cx-m-hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 14px;
    background: var(--cx-red);
    color: #fff;
    font: 700 1rem "Montserrat", sans-serif;
    letter-spacing: -0.01em;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(185, 43, 39, 0.34);
  }
  .cx-landing .cx-m-hero-note {
    margin: 12px 0 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.66);
  }

  /* Jump chips */
  .cx-landing .cx-m-jump {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    background: var(--cx-paper);
    border-bottom: 1px solid var(--cx-line);
  }
  .cx-landing .cx-m-jump::-webkit-scrollbar { display: none; }
  .cx-landing .cx-m-jump a {
    flex: 0 0 auto;
    padding: 10px 15px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid var(--cx-line);
    background: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--cx-ink);
    text-decoration: none;
  }

  /* Sections */
  .cx-landing .cx-m-section { padding: 32px 0 26px; }
  .cx-landing .cx-m-section-navy { background: var(--cx-navy); color: #e7ecf3; }
  .cx-landing .cx-m-section-navy h2 { color: #fff; }
  .cx-landing .cx-m-section-navy .cx-m-section-head > p:last-child { color: rgba(231, 236, 243, 0.72); }
  .cx-landing .cx-m-section-warm { background: var(--cx-paper-warm); }
  .cx-landing .cx-m-section-head { padding: 0 20px; margin-bottom: 18px; }
  .cx-landing .cx-m-eyebrow {
    margin: 0 0 10px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cx-red);
  }
  .cx-landing .cx-m-section-navy .cx-m-eyebrow { color: #ff8a87; }
  .cx-landing .cx-m-section-head h2 {
    font-size: clamp(1.35rem, 6vw, 1.7rem);
    margin: 0 0 10px;
    text-wrap: balance;
  }
  .cx-landing .cx-m-section-head > p:last-child {
    margin: 0;
    color: var(--cx-ink-soft);
    font-size: 0.95rem;
    line-height: 1.55;
  }

  /* How it works: vertical step stack */
  .cx-landing .cx-m-steps {
    list-style: none;
    margin: 0;
    padding: 0 16px;
    display: grid;
    gap: 14px;
  }
  .cx-landing .cx-m-steps > li {
    position: relative;
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--cx-line);
    box-shadow: 0 10px 26px rgba(25, 36, 54, 0.07);
  }
  .cx-landing .cx-m-step-n {
    position: absolute;
    top: 14px;
    right: 16px;
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    line-height: 1;
    color: rgba(185, 43, 39, 0.14);
    letter-spacing: -0.04em;
  }
  .cx-landing .cx-m-step-body {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
  }
  .cx-landing .cx-m-step-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #ffe3dd;
    color: var(--cx-red);
  }
  .cx-landing .cx-m-step-icon .landing-icon { width: 1.25rem; height: 1.25rem; }
  .cx-landing .cx-m-steps > li:nth-child(2) .cx-m-step-icon { background: #e9e3ff; color: var(--cx-purple); }
  .cx-landing .cx-m-steps > li:nth-child(3) .cx-m-step-icon { background: #dff3dd; color: var(--cx-green); }
  .cx-landing .cx-m-step-body strong {
    display: block;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
  }
  .cx-landing .cx-m-step-body p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--cx-ink-soft);
    line-height: 1.5;
  }
  .cx-landing .cx-m-step-shot {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--cx-line);
  }
  .cx-landing .cx-m-step-shot img {
    display: block;
    width: 100%;
    height: auto;
  }

  /* Equipment checklist */
  .cx-landing .cx-m-check-stack {
    list-style: none;
    margin: 0;
    padding: 0 16px;
    display: grid;
    gap: 8px;
  }
  .cx-landing .cx-m-check-stack li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  .cx-landing .cx-m-check-n {
    font-family: "Montserrat", sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.45);
  }
  .cx-landing .cx-m-check-stack strong {
    display: block;
    color: #fff;
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 2px;
  }
  .cx-landing .cx-m-check-stack li div > span {
    display: block;
    font-size: 0.8rem;
    color: rgba(231, 236, 243, 0.68);
    line-height: 1.35;
  }
  .cx-landing .cx-m-check-ok {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(95, 211, 138, 0.16);
    color: #5fd38a;
  }
  .cx-landing .cx-m-check-ok .landing-icon { width: 1.1rem; height: 1.1rem; }
  .cx-landing .cx-m-shot {
    margin: 18px 16px 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
  }
  .cx-landing .cx-m-shot img {
    display: block;
    width: 100%;
    height: auto;
  }

  /* Results */
  .cx-landing .cx-m-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 0 16px 16px;
  }
  .cx-landing .cx-m-stats > div {
    padding: 14px 8px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--cx-line);
    text-align: center;
  }
  .cx-landing .cx-m-stats strong {
    display: block;
    color: var(--cx-red);
    font-size: 1.3rem;
    line-height: 1;
    margin-bottom: 6px;
    font-family: "Montserrat", sans-serif;
  }
  .cx-landing .cx-m-stats span {
    font-size: 0.7rem;
    color: var(--cx-muted);
    font-weight: 600;
  }
  .cx-landing .cx-m-rail {
    display: flex;
    gap: 12px;
    padding: 4px 16px 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .cx-landing .cx-m-rail::-webkit-scrollbar { display: none; }
  .cx-landing .cx-m-shot-card {
    flex: 0 0 86vw;
    max-width: 360px;
    scroll-snap-align: center;
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--cx-line);
    background: #fff;
    box-shadow: 0 14px 32px rgba(25, 36, 54, 0.1);
    opacity: 0.72;
    transform: scale(0.97);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .cx-landing .cx-m-shot-card.is-active {
    opacity: 1;
    transform: scale(1);
  }
  .cx-landing .cx-m-shot-card img {
    display: block;
    width: 100%;
    height: auto;
  }

  /* Subjects */
  .cx-landing .cx-m-subjects {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0 16px;
  }
  .cx-landing .cx-m-subjects article {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 68px;
    padding: 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--cx-line);
  }
  .cx-landing .cx-m-subjects article > span {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #ffe3dd;
    color: var(--cx-red);
    flex-shrink: 0;
  }
  .cx-landing .cx-m-subjects article:nth-child(2) > span { background: #e9e3ff; color: var(--cx-purple); }
  .cx-landing .cx-m-subjects article:nth-child(3) > span { background: #ffe8c9; color: var(--cx-amber); }
  .cx-landing .cx-m-subjects article:nth-child(4) > span { background: #dff3dd; color: var(--cx-green); }
  .cx-landing .cx-m-subjects .landing-icon { width: 1.2rem; height: 1.2rem; }
  .cx-landing .cx-m-subjects article > div { min-width: 0; }
  .cx-landing .cx-m-subjects article strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.02em;
  }
  .cx-landing .cx-m-subjects article > div > span {
    display: block;
    font-size: 0.78rem;
    color: var(--cx-muted);
    margin-top: 2px;
  }

  /* Pricing — official component, lightly framed for mobile */
  .cx-landing .cx-m-pricing {
    padding: 0 16px;
    display: grid;
    justify-items: center;
  }
  .cx-landing .cx-m-pricing .pricing-selector-card {
    width: min(100%, 448px);
    margin: 0;
  }

  /* Facts */
  .cx-landing .cx-m-facts {
    margin: 0;
    padding: 0 16px;
    display: grid;
    gap: 0;
    border-top: 1px solid var(--cx-line);
  }
  .cx-landing .cx-m-facts > div {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--cx-line);
  }
  .cx-landing .cx-m-facts dt {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cx-muted);
  }
  .cx-landing .cx-m-facts dd {
    margin: 0;
    font-size: 0.92rem;
    color: var(--cx-ink);
    line-height: 1.4;
  }

  /* Footer */
  .cx-landing .cx-m-foot {
    padding: 28px 20px 12px;
    border-top: 1px solid var(--cx-line);
  }
  .cx-landing .cx-m-foot-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
  }
  .cx-landing .cx-m-foot-brand img {
    border-radius: 50%;
    width: 24px;
    height: 24px;
  }
  .cx-landing .cx-m-foot-brand b {
    font-size: 0.95rem;
    font-weight: 800;
  }
  .cx-landing .cx-m-foot > p {
    margin: 0 0 14px;
    font-size: 0.8rem;
    color: var(--cx-muted);
    line-height: 1.45;
  }
  .cx-landing .cx-m-foot-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
  }
  .cx-landing .cx-m-foot-links a {
    font-size: 0.82rem;
    font-weight: 650;
    color: var(--cx-ink-soft);
    text-decoration: none;
  }

  @media (prefers-reduced-motion: reduce) {
    .cx-landing .cx-m-hero-copy,
    .cx-landing .cx-m-shot-card {
      transition: none;
    }
  }
}

@media (min-width: 640px) and (max-width: 900px) {
  .cx-landing .cx-m-hero {
    min-height: min(78svh, 720px);
  }
  .cx-landing .cx-m-shot-card {
    flex-basis: min(62vw, 420px);
  }
}
