/* ============================================================================
   MOBILE-SANDBOX.CSS — phone-only layer for the Coommit landing (sandbox).
   Architecture: every desktop section is duplicated in sandbox.njk —
   the PC original carries .pc-only, its phone twin carries .mob-only.
   This file NEVER restyles desktop markup: all mobile sections use fresh
   .m-* class names, so editing the PC page can't move the phone page and
   vice-versa. Breakpoint: 768px (matches the conventions already in the page).
   ========================================================================== */

/* ---- Visibility framework ---- */
@media (max-width: 768px) {
  .pc-only { display: none !important; }
}
@media (min-width: 769px) {
  .mob-only { display: none !important; }
}

/* Everything below only ever applies on phones. */
@media (max-width: 768px) {

  /* ---- Mobile foundations ---- */
  :root {
    --m-pad: 1.25rem;            /* horizontal page gutter */
    --m-radius: 18px;            /* card corner radius */
    --m-section-gap: 4.5rem;     /* vertical rhythm between sections */
  }
  html, body { overflow-x: clip; }

  /* Shared mobile primitives */
  .m-section { padding: var(--m-section-gap) var(--m-pad) 0; }
  .m-eyebrow {
    display: flex; justify-content: center; align-items: center; gap: .65rem;
    font-size: .76rem; font-weight: 700; letter-spacing: .16em;
    text-transform: uppercase; color: var(--accent);
    margin: 0 0 .8rem;
  }
  .m-eyebrow::before, .m-eyebrow::after {
    content: ""; width: 22px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, rgba(99,102,241,0), var(--accent));
  }
  .m-eyebrow::after { background: linear-gradient(90deg, var(--accent), rgba(99,102,241,0)); }
  .m-h2 {
    margin: 0 0 .9rem; text-align: center;
    font-size: clamp(1.7rem, 7.4vw, 2.15rem); font-weight: 800;
    letter-spacing: -0.03em; line-height: 1.14;
    background: linear-gradient(135deg, var(--title-grad-a) 0%, var(--title-grad-b) 55%, var(--title-grad-c) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .m-sub {
    margin: 0 auto 1.6rem; max-width: 34ch; text-align: center;
    font-size: .98rem; line-height: 1.65; color: var(--color-text-secondary);
  }
  .m-cta {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    width: 100%; min-height: 54px; padding: .95rem 1.4rem;
    border-radius: 16px; border: none;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff; font-family: inherit; font-size: 1.02rem; font-weight: 700;
    text-decoration: none; letter-spacing: .01em;
    box-shadow: 0 10px 28px -8px rgba(99,102,241,.55), 0 2px 8px rgba(99,102,241,.25);
  }
  .m-cta:active { transform: scale(.985); }
  .m-cta--ghost {
    background: rgba(99,102,241,.09); color: var(--accent-dark);
    border: 1px solid rgba(99,102,241,.32); box-shadow: none;
  }
  .m-card {
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(99,102,241,.14);
    border-radius: var(--m-radius);
    box-shadow: 0 14px 40px -18px rgba(49,46,129,.18);
    overflow: hidden;
  }

}

/* ════════════════════ SECTION STYLES (phones only) ════════════════════ */
@media (max-width: 768px) {

  /* ---- Chrome swap: the desktop dock + banner give way to .m-nav ---- */
  .dock, .top-banner { display: none !important; }
  body.has-banner .dock.is-visible { top: auto; }

  /* ---- Mobile nav ---- */
  .m-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 300;
    display: flex; align-items: center; justify-content: space-between;
    height: 56px; padding: 0 var(--m-pad);
    background: rgba(245,245,253,.82);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(27,28,46,.07);
  }
  .m-nav__logo { display: flex; align-items: center; }
  .m-nav__logo img { height: 30px; width: auto; display: block; }
  /* Burger: 44px hit area, three bars morphing to an X when open */
  .m-nav__burger {
    position: relative; width: 44px; height: 44px; border: none; background: none;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 5px; cursor: pointer; border-radius: 12px; -webkit-tap-highlight-color: transparent;
  }
  .m-nav__burger:active { background: rgba(27,28,46,.06); }
  .m-nav__burger span {
    display: block; width: 22px; height: 2.4px; border-radius: 2px;
    background: var(--color-text); transition: transform .28s cubic-bezier(.16,1,.3,1), opacity .2s ease;
  }
  .m-nav__burger.is-open span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
  .m-nav__burger.is-open span:nth-child(2) { opacity: 0; }
  .m-nav__burger.is-open span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }
  /* Slide-down menu: same destinations as the desktop dock */
  .m-nav__menu {
    position: fixed; top: 56px; left: 0; right: 0; z-index: 299;
    display: flex; flex-direction: column; gap: .15rem;
    padding: .75rem var(--m-pad) 1.1rem;
    background: rgba(245,245,253,.96);
    -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
    border-bottom: 1px solid rgba(27,28,46,.08);
    box-shadow: 0 22px 48px -18px rgba(27,28,46,.22);
    animation: m-menu-in .26s cubic-bezier(.16,1,.3,1) both;
  }
  .m-nav__menu[hidden] { display: none; }
  @keyframes m-menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  .m-nav__menu-link {
    display: flex; align-items: center; gap: .8rem; min-height: 50px;
    padding: 0 .85rem; border-radius: 14px;
    color: var(--color-text); font-size: 1rem; font-weight: 600; text-decoration: none;
  }
  .m-nav__menu-link:active { background: rgba(99,102,241,.08); }
  .m-nav__menu-link svg { width: 19px; height: 19px; color: var(--accent); flex-shrink: 0; }
  .m-nav__menu-cta {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 52px; margin-top: .55rem; border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff; font-size: .98rem; font-weight: 700; text-decoration: none;
    box-shadow: 0 10px 26px -8px rgba(99,102,241,.55);
  }
  .m-nav__menu-cta:active { transform: scale(.985); }
  .m-nav__menu-cta svg { width: 16px; height: 16px; flex-shrink: 0; }

  /* ---- Mobile hero ---- */
  .m-hero {
    /* Headline → sub → live Without/With room switch → CTA. */
    padding: calc(56px + clamp(2rem, 7vh, 3.5rem)) var(--m-pad) .5rem;
    background:
      radial-gradient(circle at 1px 1px, rgba(27,28,46,.065) 1.3px, transparent 0) 0 0 / 24px 24px,
      radial-gradient(120% 55% at 50% -5%, rgba(99,102,241,.12) 0%, rgba(139,92,246,.05) 45%, transparent 75%);
  }
  .m-hero__content { text-align: center; }
  .m-hero__headline {
    margin: .4rem 0 1rem;
    font-size: clamp(2.05rem, 9vw, 2.6rem); font-weight: 800;
    letter-spacing: -0.035em; line-height: 1.08; color: var(--color-text);
    animation: m-rise .7s cubic-bezier(.16,1,.3,1) both;
  }
  .m-hero__accent {
    background: linear-gradient(135deg, #4338ca 0%, var(--accent) 60%, #818cf8 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .m-hero__sub {
    margin: 0 auto; max-width: 32ch; text-wrap: balance;
    font-size: 1rem; line-height: 1.62; color: var(--color-text-secondary);
    animation: m-rise .7s .09s cubic-bezier(.16,1,.3,1) both;
  }
  .m-hero__ctas {
    display: flex; flex-direction: column; gap: .6rem; margin-top: 1.5rem;
    animation: m-rise .7s .18s cubic-bezier(.16,1,.3,1) both;
  }
  .m-hero__ctas .m-cta--ghost { min-height: 48px; }
  .m-hero__micro {
    margin: .8rem 0 0; font-size: .78rem; color: var(--color-text-tertiary);
    text-align: center;
    animation: m-rise .7s .24s cubic-bezier(.16,1,.3,1) both;
  }
  .m-hero__scrollhint {
    margin: 1.6rem 0 0; display: flex; justify-content: center; color: var(--accent);
    animation: m-rise .8s .5s cubic-bezier(.16,1,.3,1) both;
  }
  .m-hero__scrollhint svg { width: 22px; height: 22px; animation: m-bounce 2s ease-in-out 1.4s infinite; }
  @keyframes m-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  @keyframes m-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

  /* ---- Mobile post-demo CTA ---- */
  .m-postdemo { padding: 2.2rem var(--m-pad) .5rem; max-width: 430px; margin: 0 auto; }

  /* ---- Without/With room switch (docked inside the hero) ---- */
  .m-hero__compare { padding: 0; margin-top: 1.5rem; animation: m-rise .7s .18s cubic-bezier(.16,1,.3,1) both; }
  .m-hero__content--after { text-align: center; }
  .m-hero__content--after .m-hero__ctas { margin-top: 1.4rem; animation-delay: .28s; }
  .m-compare__toggle {
    position: relative; display: flex; gap: 0; margin: 0 auto .75rem; padding: .28rem;
    max-width: 380px; border-radius: 999px;
    background: #e9eaf3;   /* OPAQUE: the hero dot-grid must not show through */
    border: 1px solid rgba(27,28,46,.08);
  }
  /* The notch is ONE element that SLIDES (tap or drag) between the options:
     dull grey on "Without Coommit", brand mauve on "With Coommit". */
  .m-compare__thumb {
    position: absolute; top: .28rem; bottom: .28rem; left: .28rem;
    width: calc(50% - .28rem); border-radius: 999px;
    background: linear-gradient(135deg, #a7abb8, #878c9c);
    box-shadow: 0 5px 14px rgba(70,74,92,.28);
    transition: transform .32s cubic-bezier(.3,1.2,.35,1), background .25s ease, box-shadow .25s ease;
    will-change: transform;
  }
  .m-compare__toggle.is-after .m-compare__thumb {
    transform: translateX(100%);
    background: linear-gradient(135deg, var(--accent), #7c6cf0);
    box-shadow: 0 6px 16px rgba(99,102,241,.32);
  }
  .m-compare__toggle.is-dragging .m-compare__thumb { transition: background .25s ease, box-shadow .25s ease; }
  /* Idle nudges: hint that the notch slides. On "With" tiny taps toward the
     left; on "Without" BIGGER taps toward the right — the pull toward
     Coommit is stronger than the pull away. */
  @keyframes m-nudge-left {
    0%, 60%, 100% { transform: translateX(100%); }
    28% { transform: translateX(calc(100% - 5px)); }
  }
  @keyframes m-nudge-right {
    0%, 60%, 100% { transform: translateX(0); }
    28% { transform: translateX(17px); }
  }
  .m-compare__toggle.is-after .m-compare__thumb { animation: m-nudge-left 1.3s ease-in-out .8s infinite; }
  .m-compare__toggle:not(.is-after) .m-compare__thumb { animation: m-nudge-right 1s ease-in-out .5s infinite; }
  .m-compare__toggle.is-dragging .m-compare__thumb { animation: none; }
  @media (prefers-reduced-motion: reduce) { .m-compare__thumb { animation: none !important; } }
  .m-compare__toggle { touch-action: pan-y; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
  .m-compare__toggle.is-dragging { cursor: grabbing; }
  .m-compare__pill {
    position: relative; z-index: 1;
    flex: 1; min-height: 44px; padding: .5rem .4rem; border: none; border-radius: 999px;
    background: transparent; color: var(--color-text-secondary);
    font-family: inherit; font-size: .88rem; font-weight: 700; cursor: pointer;
    transition: color .22s ease, transform .15s ease;
  }
  .m-compare__pill:active { transform: scale(.97); }
  .m-compare__pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .m-compare__pill.is-active { color: #fff; }
  /* On "Without": the idle "With Coommit" label turns brand mauve — the
     upgrade path stays the most inviting thing in the control. */
  .m-compare__toggle:not(.is-after) .m-compare__pill[data-side="after"] { color: var(--accent); }
  .m-compare__stage {
    position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 9;
    box-shadow: 0 18px 48px -16px rgba(49,46,129,.3), 0 0 0 1px rgba(99,102,241,.12);
    background: #ebebf5;
  }
  .m-compare__video {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transition: opacity .45s ease;
  }
  .m-compare__video.is-active { opacity: 1; }

  /* ---- Mobile first-week cards ---- */
  .m-fw { padding: var(--m-section-gap) 0 0; }
  /* FROZEN STAGE: the viewport's height (set by JS) is the scroll runway;
     the stage pins fullscreen while the inner content is translated through
     it — pausing while the centered card flips. Cards are a plain stacked
     list again. */
  .m-fw__stage {
    position: sticky; top: 0;
    height: 100vh; height: 100dvh;   /* dvh: no dead band when the URL bar retracts */
    overflow: hidden;
  }
  .m-fw__inner {
    /* bottom padding lets the LAST card travel all the way to screen center
       before its flip triggers */
    padding: 1.2rem var(--m-pad) 42svh;
    will-change: transform;
  }
  .m-fw__list { margin-top: 1.9rem; }
  .m-fw__card { margin-bottom: 1.25rem; }
  /* reduced-motion / fallback: normal flow, no stage math */
  .m-fw--static .m-fw__viewport { height: auto !important; }
  .m-fw--static .m-fw__stage { position: static; height: auto; overflow: visible; }
  /* Two independent planes (no preserve-3d — Chrome flattens it too easily):
     the JS rotates the front 0→180° and the back −180→0° in lockstep. */
  .m-fw__card { position: relative; perspective: 1400px; }
  .m-fw__front, .m-fw__back {
    backface-visibility: hidden; -webkit-backface-visibility: hidden;
    border-radius: var(--m-radius); overflow: hidden;
    border: 1px solid rgba(99,102,241,.14);
    box-shadow: 0 14px 40px -18px rgba(49,46,129,.18);
    will-change: transform;
  }
  .m-fw__front { position: relative; background: #fff; }
  .m-fw__back {
    position: absolute; inset: 0; transform: rotateY(-180deg);
    background: #0f0c1d;
  }
  /* reduced-motion path: plain instant flip */
  .m-fw__card.is-flipped .m-fw__front { transform: rotateY(180deg); }
  .m-fw__card.is-flipped .m-fw__back { transform: rotateY(0deg); }
  .m-fw__body { padding: 1.35rem 1.35rem 1.1rem; }
  .m-fw__icon {
    display: grid; place-items: center; width: 42px; height: 42px;
    border-radius: 12px; background: rgba(99,102,241,.10);
    border: 1px solid rgba(99,102,241,.22); color: var(--accent);
    margin-bottom: .85rem;
  }
  .m-fw__tag {
    margin: 0 0 .35rem; font-size: .68rem; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  }
  .m-fw__title {
    margin: 0 0 .5rem; font-size: 1.18rem; font-weight: 800;
    letter-spacing: -0.02em; line-height: 1.25; color: var(--color-text);
  }
  .m-fw__desc { margin: 0; font-size: .92rem; line-height: 1.6; color: var(--color-text-secondary); }
  .m-fw__desc a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
  /* The mobile cuts were composed AT card ratio: contain + a backdrop that
     matches each composition's own background → the whole frame always shows
     and any letterbox is invisible. */
  .m-fw__video {
    display: block; width: 100%; height: 100%;
    object-fit: contain; object-position: center;
  }
  .m-fw__card:nth-child(1) .m-fw__back { background: #f6f8fc; }
  .m-fw__card:nth-child(2) .m-fw__back { background: #edeff4; }  /* fw-speed gradient base */
  .m-fw__card:nth-child(3) .m-fw__back { background: #f5f5f8; }
  .m-fw__card:nth-child(4) .m-fw__back { background: #eef0f4; }
  .m-fw__metric {
    display: flex; align-items: baseline; gap: .7rem;
    padding: .35rem 1.35rem 1.2rem;
  }
  .m-fw__metric-num {
    font-size: 2rem; font-weight: 800; letter-spacing: -0.03em;
    background: linear-gradient(135deg, #4338ca, var(--accent-light));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  }
  .m-fw__metric-label { margin: 0; font-size: .8rem; line-height: 1.45; color: var(--color-text-secondary); }

  /* ---- Mobile CTA section ---- */
  .m-ctasec { padding: var(--m-section-gap) var(--m-pad) 0; }
  .m-ctasec__rect {
    padding: 2.2rem 1.4rem 2rem; border-radius: 22px; text-align: center;
    background:
      radial-gradient(120% 100% at 50% 0%, rgba(99,102,241,.14) 0%, rgba(139,92,246,.06) 50%, transparent 80%),
      rgba(255,255,255,.5);
    border: 1px solid rgba(99,102,241,.16);
  }
  .m-ctasec .m-sub { margin-bottom: 1.5rem; text-wrap: pretty; }
  .m-sec { display: flex; flex-direction: column; gap: .7rem; text-align: left; }
  .m-sec__item {
    display: flex; align-items: flex-start; gap: .75rem;
    padding: .9rem 1rem; border-radius: 14px;
    background: rgba(255,255,255,.6); border: 1px solid rgba(99,102,241,.16);
  }
  .m-sec__ic {
    display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0;
    border-radius: 11px; background: rgba(99,102,241,.10);
    border: 1px solid rgba(99,102,241,.25); color: var(--accent);
  }
  .m-sec__ic svg { width: 18px; height: 18px; }
  .m-sec__item p { margin: 0; font-size: .84rem; line-height: 1.45; color: var(--color-text-secondary); }
  .m-sec__item b { display: block; font-size: .92rem; color: var(--color-text); margin-bottom: .1rem; }

  /* ---- Mobile pricing ---- */
  .m-pricing { padding: var(--m-section-gap) var(--m-pad) 0; }
  .mp-segmented__wrap { margin: 2.4rem 0 1.9rem; }
  .mp-segmented {
    display: flex; gap: .3rem; padding: .28rem; border-radius: 999px;
    background: rgba(27,28,46,.05); border: 1px solid rgba(27,28,46,.08);
    max-width: 400px; margin: 0 auto;
  }
  .mp-segmented__opt {
    position: relative; flex: 1; min-height: 44px; padding: .5rem .3rem;
    border: none; border-radius: 999px; background: transparent;
    color: var(--color-text-secondary); font-family: inherit;
    font-size: .8rem; font-weight: 700; cursor: pointer; white-space: nowrap;
    transition: background .25s ease, color .25s ease, box-shadow .25s ease;
  }
  .mp-segmented__save { margin-left: .25rem; font-size: .68rem; font-weight: 700; color: var(--accent); }
  .mp-segmented__opt.is-active {
    background: var(--accent); color: #fff;
    box-shadow: 0 5px 14px rgba(99,102,241,.3);
  }
  .mp-segmented__opt.is-active .mp-segmented__save { color: rgba(255,255,255,.92); }
  /* Annual reads stronger than Monthly even while inactive (same hierarchy
     as the desktop toggle), Two Years gets the premium gradient. */
  .mp-segmented__opt[data-term="annual"]:not(.is-active) {
    color: #4338CA; background: rgba(99,102,241,.08);
  }
  .mp-segmented__opt[data-term="annual"].is-active { background: linear-gradient(135deg, #6366f1, #7c6cf0); }
  .mp-segmented__opt[data-term="twoyear"].is-active { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
  /* Floating "Recommended" / "Best value" pills above the toggle */
  .mp-segmented__opt[data-term="annual"]::before,
  .mp-segmented__opt[data-term="twoyear"]::before {
    position: absolute; top: -1.65rem; left: 50%; transform: translateX(-50%);
    font-size: .6rem; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; white-space: nowrap; line-height: 1;
    color: #fff; padding: 3px 8px; border-radius: 999px;
  }
  .mp-segmented__opt[data-term="annual"]::before {
    content: 'Recommended';
    background: linear-gradient(135deg, #818cf8, #6366f1);
    box-shadow: 0 4px 10px rgba(99,102,241,.35);
  }
  .mp-segmented__opt[data-term="twoyear"]::before {
    content: 'Best value';
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 5px 14px rgba(139,92,246,.5);
  }
  .mp-hint {
    margin: .9rem 0 0; text-align: center; font-size: .78rem;
    color: var(--color-text-secondary); opacity: .75; min-height: 3.2em;
  }
  .mp-card {
    background: rgba(255,255,255,.8); border: 1px solid rgba(99,102,241,.2);
    border-radius: 22px; padding: 1.5rem 1.35rem;
    box-shadow: 0 18px 50px -20px rgba(49,46,129,.22);
    transition: border-color .35s ease, box-shadow .35s ease;
  }
  .mp-card[data-term="annual"] {
    border-color: rgba(99,102,241,.4);
    box-shadow: 0 0 0 1px rgba(99,102,241,.16) inset, 0 20px 55px -18px rgba(99,102,241,.28);
  }
  .mp-card[data-term="twoyear"] {
    border-color: rgba(139,92,246,.55);
    background:
      radial-gradient(140% 70% at 50% 0%, rgba(99,102,241,.1), transparent 60%),
      rgba(255,255,255,.86);
    box-shadow: 0 0 0 1px rgba(139,92,246,.28) inset, 0 24px 64px -18px rgba(99,102,241,.38);
  }
  .mp-card__head { text-align: left; }
  .mp-card__badge {
    display: inline-block; padding: .28rem .7rem; border-radius: 999px;
    font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--accent-dark); background: rgba(99,102,241,.12);
    border: 1px solid rgba(99,102,241,.28); margin-bottom: .7rem;
    transition: background .3s ease, color .3s ease;
  }
  .mp-card[data-term="twoyear"] .mp-card__badge {
    background: linear-gradient(135deg, rgba(99,102,241,.95), rgba(139,92,246,.85));
    color: #fff; border-color: transparent; box-shadow: 0 0 16px rgba(99,102,241,.4);
  }
  .mp-card__price-row { display: flex; align-items: baseline; gap: .3rem; margin: .2rem 0 .6rem; }
  .mp-card__price {
    font-size: 3rem; font-weight: 800; letter-spacing: -0.04em; color: var(--color-text);
    transition: opacity .2s ease, transform .2s ease;
  }
  .mp-card__price.is-switching { opacity: 0; transform: translateY(6px); }
  .mp-card[data-term="twoyear"] .mp-card__price {
    background: linear-gradient(135deg, #4338ca 15%, #6366f1 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  }
  .mp-card__period { font-size: .95rem; font-weight: 600; color: var(--color-text-secondary); }
  .mp-card__desc { margin: 0; font-size: .9rem; line-height: 1.6; color: var(--color-text-secondary); }
  .mp-card__savings {
    display: none; margin: .55rem 0 0; font-size: .8rem; font-weight: 700; color: var(--accent-dark);
  }
  .mp-card[data-term="annual"] .mp-card__savings,
  .mp-card[data-term="twoyear"] .mp-card__savings { display: block; }
  .mp-card__divider { height: 1px; background: rgba(27,28,46,.08); margin: 1.15rem 0; }
  .mp-card__note {
    margin: .6rem 0 0; text-align: center; font-size: .76rem; color: var(--color-text-tertiary);
  }
  .mp-card__features { display: flex; flex-direction: column; gap: .68rem; }
  .mp-card__features-label {
    font-size: .72rem; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: var(--color-text-secondary); margin-bottom: .15rem;
  }
  .mp-card__features-label--x { color: var(--accent-dark); }
  .mp-card__feature { display: flex; gap: .6rem; align-items: flex-start; }
  .mp-card__feature span { font-size: .89rem; line-height: 1.5; color: var(--color-text-secondary); }
  .mp-card__feature strong { color: var(--color-text); font-weight: 700; }
  .mp-card__check { width: 15px; height: 15px; flex-shrink: 0; margin-top: .18rem; color: var(--accent); }
  .mp-card__check--star { color: #8b5cf6; }
  .mp-card__exclusive { display: none; }
  .mp-card[data-term="twoyear"] .mp-card__exclusive { display: block; animation: mp-x-in .4s ease both; }
  @keyframes mp-x-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  .mp-disclosure {
    margin: 1.6rem auto 0; max-width: 46ch; text-align: center;
    font-size: .74rem; line-height: 1.6; color: var(--color-text-secondary);
  }
  .mp-disclosure a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

  /* ---- Mobile closer ---- */
  .m-closer { padding: var(--m-section-gap) var(--m-pad) 4rem; text-align: center; }
  .m-closer .m-cta { max-width: 420px; margin: 0 auto; }


  /* ---- Meet Echo capability modal: full-width motion design ---- */
  .mj-mob__cap-head { width: 100%; border: none; background: none; font-family: inherit; text-align: left; cursor: pointer; }
  .mj-mob__cap-play {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; margin-left: auto; flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
    color: #fff; border: none;
    box-shadow: 0 6px 16px -4px rgba(99,102,241,.55), inset 0 1px 0 rgba(255,255,255,.25);
  }
  /* solid triangle, optical centering baked into the path — no CSS nudge */
  .mj-mob__cap-play svg { width: 16px; height: 16px; display: block; }
  .mj-mob__cap-head:active .mj-mob__cap-play { transform: scale(.94); }
  .mjm-modal { position: fixed; inset: 0; z-index: 400; display: none; }
  .mjm-modal.is-open { display: block; }
  .mjm-modal__backdrop {
    position: absolute; inset: 0; background: rgba(10,9,18,.62);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    animation: mjm-fade .25s ease both;
  }
  @keyframes mjm-fade { from { opacity: 0; } to { opacity: 1; } }
  .mjm-modal__box {
    position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
    margin: 0 .5rem; border-radius: 18px; overflow: hidden;
    background: #fff; box-shadow: 0 32px 80px -20px rgba(0,0,0,.5);
    animation: mjm-pop .3s cubic-bezier(.16,1,.3,1) both;
  }
  @keyframes mjm-pop { from { opacity: 0; transform: translateY(calc(-50% + 14px)) scale(.97); } to { opacity: 1; transform: translateY(-50%) scale(1); } }
  .mjm-modal__bar {
    display: flex; align-items: center; justify-content: space-between;
    gap: .75rem; padding: .8rem .55rem .8rem 1.05rem;
  }
  .mjm-modal__title { margin: 0; font-size: 1rem; font-weight: 700; color: var(--color-text); letter-spacing: -0.01em; }
  .mjm-modal__close {
    display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0;
    border: none; background: rgba(27,28,46,.05); border-radius: 12px;
    color: var(--color-text-secondary); cursor: pointer;
  }
  .mjm-modal__close svg { width: 17px; height: 17px; }
  .mjm-modal__video { display: block; width: 100%; height: auto; max-height: 72svh; object-fit: contain; background: #0f0c1d; }

  /* ---- Anchor clearance under the fixed 56px nav (all jump targets) ---- */
  .m-hero, .m-compare, .m-fw, .m-ctasec, .m-pricing, .m-closer,
  .tryphone, .meet-jarvis-mob, .mobile-demo-section, .m-postdemo {
    scroll-margin-top: 72px;
  }

  /* ---- Meet Echo mobile: kill the dead air, align to the m-* system.
     (.mj-mob__* rules live in the shared stylesheet; these phone-only
     overrides never load on desktop.) ---- */
  .meet-jarvis-mob .mj-mob__robot { height: 250px; margin-bottom: 1.25rem; }
  .meet-jarvis-mob .mj-mob__robot .echo-mascot-video,
  .meet-jarvis-mob .mj-mob__robot img { width: 92%; max-width: 340px; }
  .meet-jarvis-mob .mj-mob__title {
    font-size: clamp(1.7rem, 7.4vw, 2.15rem); font-weight: 800;
    letter-spacing: -0.03em; line-height: 1.14;
    background: linear-gradient(135deg, var(--title-grad-a) 0%, var(--title-grad-b) 55%, var(--title-grad-c) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .meet-jarvis-mob .mj-mob__title span { color: inherit !important; }
  .meet-jarvis-mob .mj-mob__subtitle { font-size: .95rem; line-height: 1.62; }
  .meet-jarvis-mob .mj-header__eyebrow { color: var(--accent) !important; font-size: .76rem; }
  .meet-jarvis-mob .mj-mob__cap { border-radius: 18px; }
  .meet-jarvis-mob .mj-mob__cap-label { font-size: .9rem; }
  .meet-jarvis-mob .mj-mob__cap-desc { font-size: .85rem; }

  /* ---- Footer, phone ergonomics (overrides only under 768px) ---- */
  .site-footer .site-footer__link {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 0 1rem; font-size: .95rem;
  }
  .site-footer .site-footer__links { gap: 0; }
  [data-theme=light] .site-footer .site-footer__col-label { color: var(--accent-dark); }

  /* ---- 320px band: keep card CTAs on one line ---- */
  @media (max-width: 360px) {
    .m-ctasec .m-cta, .mp-card__cta { font-size: .95rem; padding-inline: 1rem; }
  }

  /* Reduced motion: no entrance/bounce choreography */
  @media (prefers-reduced-motion: reduce) {
    .m-hero__headline, .m-hero__sub, .m-hero__ctas, .m-hero__micro,
    .m-hero__scrollhint { animation: none; }
    .m-hero__scrollhint svg { animation: none; }
  }
}

/* ═══════════════════════════════════════════════════════════════════
   ENTERPRISE (mobile twin of .ent-card) — mp-ent-* only, 2026-07-28
   Fourth segmented option + the dark quote card it swaps in.
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Four options now share the pill: tighter type so nothing wraps. */
  .mp-segmented { gap: .2rem; padding: .24rem; max-width: 420px; }
  .mp-segmented__opt { font-size: .72rem; padding: .5rem .18rem; }
  .mp-segmented__save { margin-left: .18rem; font-size: .6rem; }
  .mp-segmented__opt[data-term="annual"]::before,
  .mp-segmented__opt[data-term="twoyear"]::before { font-size: .5rem; padding: .12rem .35rem; }

  /* The Enterprise tab reads as a different kind of choice: ink, not mauve. */
  .mp-segmented__opt--ent.is-active {
    background: #1b1c2e; color: #fff;
    box-shadow: 0 5px 14px rgba(27,28,46,.3);
  }

  /* .mp-card sets display:flex, which outranks the UA [hidden] rule. */
  .mp-card[hidden], .mp-ent[hidden], .mp-disclosure[hidden] { display: none !important; }

  .mp-ent {
    position: relative; overflow: hidden; text-align: left;
    margin: 0 auto; max-width: 460px; padding: 1.6rem;
    background: linear-gradient(165deg,#232544 0%,#1b1c2e 60%,#151628 100%);
    border: 1px solid rgba(129,140,248,.35); border-radius: 22px;
    color: #fff;
    box-shadow: 0 2px 6px rgba(27,28,46,.2), 0 20px 46px rgba(38,31,92,.3);
    animation: mp-ent-in .4s cubic-bezier(.2,.8,.3,1) both;
  }
  @keyframes mp-ent-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  .mp-ent::before {
    content: ''; position: absolute; top: -40%; right: -30%; width: 80%; height: 150%;
    background: radial-gradient(closest-side, rgba(129,140,248,.32), transparent);
    pointer-events: none;
  }
  .mp-ent > * { position: relative; }
  .mp-ent__badge {
    position: absolute; top: 1.4rem; right: 1.4rem;
    font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: #c7d2fe; background: rgba(129,140,248,.16);
    border: 1px solid rgba(129,140,248,.4); border-radius: 999px; padding: .2rem .6rem;
  }
  .mp-ent__price { font-size: 2.2rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
  .mp-ent__pricenote { font-size: .8rem; color: rgba(255,255,255,.58); margin-top: .45rem; }
  .mp-ent__desc { font-size: .88rem; line-height: 1.6; color: rgba(255,255,255,.75); margin-top: .8rem; }
  .mp-ent__cta {
    display: block; width: 100%; min-height: 48px; margin-top: 1.3rem; padding: .85rem 1.2rem;
    font-family: inherit; font-size: 1rem; font-weight: 700;
    border: none; border-radius: 14px; cursor: pointer;
    background: #fff; color: #4338CA;
  }
  .mp-ent__cta:active { transform: translateY(1px); }
  .mp-ent__note { font-size: .74rem; color: rgba(255,255,255,.48); text-align: center; margin-top: .55rem; }
  .mp-ent__divider { height: 1px; background: rgba(255,255,255,.12); margin: 1.4rem 0; }
  .mp-ent__label { display: block; font-size: .78rem; color: rgba(255,255,255,.52); margin-bottom: .8rem; }
  .mp-ent__features { display: flex; flex-direction: column; gap: .7rem; }
  .mp-ent__feature { display: flex; align-items: flex-start; gap: .6rem; font-size: .88rem; line-height: 1.55; color: rgba(255,255,255,.72); }
  .mp-ent__feature strong { color: #fff; font-weight: 700; }
  .mp-ent__check { width: 16px; height: 16px; margin-top: 4px; flex-shrink: 0; color: #818cf8; }
  .mp-ent__reach { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); }
  .mp-ent__reach-label { font-size: .78rem; color: rgba(255,255,255,.5); margin-bottom: .6rem; }
  /* Both ways to reach us sit on one line, side by side. */
  .mp-ent__reach-row { display: flex; flex-wrap: nowrap; gap: .4rem; }
  .mp-ent__reach-item {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    flex: 1 1 auto; min-width: 0; white-space: nowrap;
    min-height: 46px; padding: .55rem .5rem; border-radius: 999px; text-decoration: none;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
    font-size: .73rem; font-weight: 600; color: #eceafd;
  }
  .mp-ent__reach-item svg { width: 15px; height: 15px; flex: none; }

  @media (max-width: 360px) {
    .mp-segmented__opt { font-size: .66rem; }
    .mp-ent { padding: 1.3rem; }
  }

  /* Under ~340px the two pills no longer fit side by side: stack them. */
  @media (max-width: 340px) {
    .mp-ent__reach-row { flex-wrap: wrap; }
    .mp-ent__reach-item { flex-basis: 100%; }
  }
}
