/* TEMPORARY: "Layout B" for phones (≤640px), switched with html[data-layout="b"]. Desktop is untouched.
   Design language: Inter, a white page like A, no cards. Text sits straight on the page with 20px gutters;
   the product screens are the only "objects": full-width brand panels (12px from the edge) holding a cropped
   console view or a phone peeking in from the bottom at near-1:1 scale. Lists are hairline rows. Headlines are
   regular weight with one bold phrase. Buttons are dark and full width. */

/* ---- switcher: a row at the foot of the phone menu; hidden on desktop ---- */
.nav__layout { display: none; }
@media (max-width: 960px) {
  .header.is-open .nav__layout { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding: 14px 12px 4px; border-top: 1px solid var(--g200); font-family: var(--font-mono); font-size: 12.5px; color: var(--g500); }
  .dev-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--g100); border: 1px dashed var(--g300); }
  .dev-switch button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; font: 600 13px/1 var(--font); color: var(--g700); }
  .dev-switch button.is-active { background: var(--navy); color: #fff; }
}

/* B-only elements are hidden everywhere by default */
.b-only { display: none !important; }
/* two headings carry a <strong> phrase for B; in A the heading is already heavy, so the tag changes nothing */
.also h2 strong, .cta h2 strong { font-weight: inherit; }

@media (max-width: 640px) {
  html[data-layout="b"] {
    --font: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
    --font-display: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
    --font-mono: "Inter", -apple-system, sans-serif;
    --bb: #ffffff; --bink: #111111; --bgrey: #6b6b6b; --bline: #e6e6e6; --bdark: #10233a;
    --bgut: 20px; --brad: 24px;
    --bgrad-landlord: linear-gradient(160deg, #0b2f4a 0%, #00527e 48%, #0ba7c0 125%);
    --bgrad-retailer: linear-gradient(160deg, #5e1340 0%, #9a1f5d 48%, #ef3e68 130%);
  }
  html[data-layout="b"] body { background: var(--bb); color: var(--bink); font-size: 15.5px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
  html[data-layout="b"] .b-only { display: block !important; }
  html[data-layout="b"] span.b-only, html[data-layout="b"] button.b-only, html[data-layout="b"] a.b-only { display: inline-flex !important; }

  /* ---- type ---- */
  html[data-layout="b"] h1, html[data-layout="b"] h2, html[data-layout="b"] h3, html[data-layout="b"] .h2, html[data-layout="b"] .h3 { font-family: var(--font); font-weight: 500; letter-spacing: -.02em; color: var(--bink); text-wrap: pretty; }
  html[data-layout="b"] .display { font-size: 33px; line-height: 1.12; font-weight: 500; letter-spacing: -.025em; text-align: left; margin: 0 0 14px; }
  html[data-layout="b"] .display .rotator { color: var(--bink); font-weight: 700; }
  html[data-layout="b"] .display .rotator::after { background: var(--teal); width: .05em; height: .8em; }
  html[data-layout="b"] .b-h2 { font-size: 25px; line-height: 1.2; font-weight: 400; letter-spacing: -.022em; margin: 0 0 10px; }
  html[data-layout="b"] .b-h2 em { font-style: normal; font-weight: 700; color: var(--bink); }
  html[data-layout="b"] .lead, html[data-layout="b"] .b-line, html[data-layout="b"] p { font-size: 15.5px; line-height: 1.55; color: var(--bgrey); }
  html[data-layout="b"] .mark { background-image: none; }
  html[data-layout="b"] .nowrap { white-space: nowrap; }

  /* ---- hide A's text-heavy pieces ---- */
  html[data-layout="b"] .b-hide, html[data-layout="b"] .section-head > .lead, html[data-layout="b"] .section-head > .h2:not(.b-only):not(.b-keep),
  html[data-layout="b"] .feature__text .h3, html[data-layout="b"] .feature__text > p:not(.b-only), html[data-layout="b"] .feature__list,
  html[data-layout="b"] .feature__text > .link-arrow, html[data-layout="b"] .hero__note, html[data-layout="b"] .hero .lead:not(.b-only),
  html[data-layout="b"] .also > div > p, html[data-layout="b"] .cta__assure, html[data-layout="b"] .cta__bg, html[data-layout="b"] .cta__form h3,
  html[data-layout="b"] .logos__label, html[data-layout="b"] .hero__glow, html[data-layout="b"] .hero__spot, html[data-layout="b"] .photo-band .h2:not(.b-only),
  html[data-layout="b"] .hero__actions .btn--ghost, html[data-layout="b"] .textled .lead, html[data-layout="b"] .textled__meta, html[data-layout="b"] .textled .h2:not(.b-only),
  html[data-layout="b"] .hero__visual::before, html[data-layout="b"] .feature__visual::before, html[data-layout="b"] .cta::after,
  html[data-layout="b"] .chain-list::before, html[data-layout="b"] .chain-list .ms { display: none !important; }

  /* ---- header: quiet, on the off-white ---- */
  html[data-layout="b"] .header { background: rgba(255, 255, 255, .9); }
  html[data-layout="b"] .header.is-scrolled { box-shadow: none; border-bottom-color: var(--bline); }
  html[data-layout="b"] .header__inner { height: 64px; }
  html[data-layout="b"] .logo img { height: 26px; }
  html[data-layout="b"] .header__cta .btn--primary { height: 38px; padding: 0 16px; background: var(--bdark); box-shadow: none; font-weight: 500; font-size: 14px; }
  html[data-layout="b"] .nav-toggle { width: 40px; height: 40px; background: #f3f3f3; border-radius: 999px; }
  html[data-layout="b"] .header.is-open .nav { top: 64px; background: var(--bb); border-bottom-color: var(--bline); box-shadow: 0 24px 40px rgba(17, 17, 17, .08); }

  /* ---- page rhythm: no cards, sections are whitespace + a heading ---- */
  html[data-layout="b"] .section { padding: 60px 0 0; background: transparent !important; }
  html[data-layout="b"] .section .container { width: auto; margin: 0 var(--bgut); }
  html[data-layout="b"] .section-head { max-width: none; margin: 0 0 20px; padding: 0; text-align: left; }
  html[data-layout="b"] .section-head .b-h2 { margin-bottom: 0; }
  html[data-layout="b"] .reveal { transform: translateY(14px); }
  html[data-layout="b"] .reveal.in { transform: none; }

  /* ---- hero: headline on the page, then the console in a brand panel, cropped to the calendar ---- */
  html[data-layout="b"] .hero { padding: 30px 0 0; overflow: visible; }
  html[data-layout="b"] .hero .container { width: auto; margin: 0; }
  html[data-layout="b"] .hero .hero__inner { text-align: left; max-width: none; padding: 0 var(--bgut); }
  html[data-layout="b"] .hero .lead.b-only { margin: 0 0 24px; max-width: 30ch; font-size: 16.5px; }
  html[data-layout="b"] .hero__actions { justify-content: stretch; margin: 0; }
  html[data-layout="b"] .hero__actions .btn--primary { width: 100%; height: 54px; border-radius: 15px; background: var(--bdark); box-shadow: none; font-weight: 500; font-size: 16px; }
  html[data-layout="b"] .b-film { margin-top: 10px; display: inline-flex !important; align-items: center; gap: 9px; padding: 8px 0; border: 0; background: none; font: 500 15px/1 var(--font); color: var(--bink); }
  html[data-layout="b"] .b-film .ms { font-size: 22px; color: var(--teal); }
  /* ---- hero: the console flush with the text column, full height, swipe sideways for the rest of the calendar ---- */
  html[data-layout="b"] .hero__visual {
    display: flex; align-items: flex-start; margin: 12px 0 0; padding: 22px 0 48px 20px; height: auto; border-radius: 0; background: none;
    overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior-x: contain;
  }
  html[data-layout="b"] .hero__visual::-webkit-scrollbar { display: none; }
  html[data-layout="b"] .hero__visual::after { content: ""; flex: none; width: 20px; }     /* air after the frame at the end of the swipe */
  html[data-layout="b"] .hero__visual .nmock { position: relative; flex: none; width: 790px; max-width: none; margin: 0; }
  html[data-layout="b"] .hero__visual .nmock .nmock-frame--browser { border-radius: 14px; border: 1px solid var(--bline); box-shadow: 0 18px 40px rgba(0, 82, 126, .13); }
  html[data-layout="b"] .hero__visual .nm-url { left: 96px; transform: none; }           /* keep the address on screen */
  html[data-layout="b"] .hero__visual .nm-toast { right: auto; left: 24px; }             /* the "lease created" toast, on screen too */
  /* sidebar collapsed to an icon rail, the way the console looks in a narrow window; the calendar gets the width */
  html[data-layout="b"] .hero__visual .nm-side { width: 56px; padding: 10px 8px 16px; }
  html[data-layout="b"] .hero__visual .nm-sec { padding: 10px 0 0; font-size: 0; line-height: 0; }
  html[data-layout="b"] .hero__visual .nm-mi { height: 36px; padding: 0; justify-content: center; }
  html[data-layout="b"] .hero__visual .nm-mi > span:not(.ms) { display: none; }   /* labels off, icons stay */
  html[data-layout="b"] .hero__visual .nm-mi.is-on::before { left: -8px; }

  /* ---- logos: one quiet line that drifts past ---- */
  html[data-layout="b"] .logos { padding: 26px 0 0; }
  html[data-layout="b"] .logos .container { width: auto; margin: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
  html[data-layout="b"] .logos__row { display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 0; width: max-content; animation: b-marquee 32s linear infinite; }
  html[data-layout="b"] .logos__row span { font-family: var(--font); font-size: 14.5px; font-weight: 500; color: #a7a59f; white-space: nowrap; padding-right: 36px; letter-spacing: -.005em; }
  @keyframes b-marquee { to { transform: translateX(-50%); } }

  /* ---- how it works: five numbered hairline rows ---- */
  html[data-layout="b"] .chain-wrap { padding: 0; }
  html[data-layout="b"] .chain-list { counter-reset: step; }
  html[data-layout="b"] .chain-list li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; gap: 0 12px; align-items: start; padding: 15px 0; border-top: 1px solid var(--bline); }
  html[data-layout="b"] .chain-list li:last-child { border-bottom: 1px solid var(--bline); }
  html[data-layout="b"] .chain-list li::before { content: counter(step, decimal-leading-zero); font-size: 13px; font-weight: 500; color: var(--teal-dark); padding-top: 3px; font-variant-numeric: tabular-nums; }
  html[data-layout="b"] .chain-list b { display: block; font-size: 16px; font-weight: 600; color: var(--bink); margin: 0; letter-spacing: -.01em; }
  html[data-layout="b"] .chain-list span:not(.ms) { display: block; font-size: 14px; color: var(--bgrey); margin-top: 1px; }

  /* ---- why: photo, one line, four checks ---- */
  html[data-layout="b"] .photo-band { display: block; }
  html[data-layout="b"] .photo-band__img { margin: 0 -8px 24px; border-radius: var(--brad); aspect-ratio: 5 / 4; box-shadow: none; }
  html[data-layout="b"] .photo-band > div { padding: 0; }
  html[data-layout="b"] .photo-band .b-line { margin: 0 0 18px; }
  html[data-layout="b"] .photo-band .checklist { gap: 11px; margin-top: 0 !important; }
  html[data-layout="b"] .photo-band .checklist li { font-size: 15px; line-height: 1.45; color: var(--bink); gap: 10px; }
  html[data-layout="b"] .photo-band .checklist .ms { color: var(--teal-dark); font-size: 20px; margin-top: 1px; }

  /* ---- features: a bold line, a sentence and a link, then the brand panel with the phone peeking in ---- */
  html[data-layout="b"] .feature, html[data-layout="b"] .feature--flip { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  html[data-layout="b"] .feature + .feature { margin-top: 44px; }
  html[data-layout="b"] .feature__text { order: 1; padding: 0; margin-bottom: 18px; }
  html[data-layout="b"] .feature__visual {
    order: 2; position: relative; margin: 0 -8px; height: var(--peek, clamp(400px, 115vw, 500px)); padding: 30px 0 0; border-radius: var(--brad); overflow: hidden; isolation: isolate;
    background: var(--bgrad-landlord); display: block;
  }
  html[data-layout="b"] .section--pink .feature__visual { background: var(--bgrad-retailer); }
  html[data-layout="b"] .feature__visual::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 100% 0%, rgba(255, 255, 255, .14), transparent 70%); }
  html[data-layout="b"] .feature__visual .nmock { position: relative; z-index: 1; width: min(100% - 32px, 390px); max-width: none; margin: 0 auto; }
  html[data-layout="b"] .feature__visual .nmock .nmock-frame--phone { box-shadow: 0 30px 60px rgba(0, 10, 25, .45), inset 0 0 0 1.5px rgba(255, 255, 255, .12); }
  html[data-layout="b"] .feature__visual .nmock .nmock-frame--browser { border-radius: 12px; border: 0; box-shadow: 0 30px 60px rgba(0, 10, 25, .4); }
  html[data-layout="b"] .feature__visual:has([data-mock="wizard-when"]) { --peek: clamp(430px, 125vw, 540px); }
  html[data-layout="b"] .feature__visual:has([data-mock="create-lease"]) { --peek: clamp(410px, 118vw, 510px); }
  html[data-layout="b"] .feature__visual:has([data-mock="phone-sign"]) { --peek: clamp(430px, 125vw, 540px); }
  html[data-layout="b"] .feature__visual:has([data-mock="dashboard"]) { --peek: clamp(440px, 128vw, 560px); }
  html[data-layout="b"] #insights .feature__visual { margin-bottom: 8px; }

  /* ---- "More" expanders: a text toggle, then hairline-free rows ---- */
  html[data-layout="b"] .more { margin-top: 6px; }
  html[data-layout="b"] .more--head { margin: 4px 0 18px; }
  html[data-layout="b"] .more__btn { font: 500 15px/1.2 var(--font); color: var(--bink); padding: 6px 0; }
  html[data-layout="b"] .more__btn .ms { font-size: 20px; color: var(--bgrey); }
  html[data-layout="b"] .more__list { gap: 10px; padding: 8px 0 4px; max-width: none; }
  html[data-layout="b"] .more__list li { font-size: 14.5px; line-height: 1.5; color: var(--bgrey); gap: 10px; }
  html[data-layout="b"] .more__list li > .ms { font-size: 20px; color: var(--teal-dark); }
  html[data-layout="b"] .section--pink .more__list li > .ms { color: var(--pink-deep); }
  html[data-layout="b"] .more__list b { color: var(--bink); font-weight: 600; }

  /* ---- insight facets: hairline rows under the phone panel ---- */
  html[data-layout="b"] .facets { display: block; margin-top: 14px; border: 0; }
  html[data-layout="b"] .facet, html[data-layout="b"] .facet + .facet { padding: 15px 0; border: 0; border-top: 1px solid var(--bline); }
  html[data-layout="b"] .facet:last-child { border-bottom: 1px solid var(--bline); }
  html[data-layout="b"] .facet h3 { font-family: var(--font); font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 3px; }
  html[data-layout="b"] .facet p { font-size: 14px; line-height: 1.5; color: var(--bgrey); max-width: none; }
  html[data-layout="b"] .b-cap { margin: 0; font-size: 15.5px; color: var(--bgrey); }
  html[data-layout="b"] .b-cap b { display: block; font-size: 19px; line-height: 1.25; font-weight: 600; color: var(--bink); letter-spacing: -.02em; margin-bottom: 6px; }
  html[data-layout="b"] .b-cap .link-arrow { display: flex; width: fit-content; align-items: center; gap: 4px; margin: 8px 0 0; padding: 0; color: var(--bink); font-size: 15px; font-weight: 500; }
  html[data-layout="b"] .b-cap .link-arrow .ms { font-size: 18px; }

  /* ---- money: the one dark block on the page ---- */
  html[data-layout="b"] .also { display: flex; flex-direction: column; gap: 0; margin: 0 -8px; padding: 26px 22px 22px; border-radius: var(--brad); background: var(--bdark); }
  html[data-layout="b"] .also > div:first-child { display: contents; }
  html[data-layout="b"] .also h2 { order: 1; font-size: 24px; line-height: 1.2; font-weight: 400; letter-spacing: -.022em; color: #fff; margin: 0 0 18px; }
  html[data-layout="b"] .also h2 strong, html[data-layout="b"] .cta h2 strong { font-weight: 700; }
  html[data-layout="b"] .also__list { order: 2; gap: 0; }
  html[data-layout="b"] .also__item { padding: 13px 0; gap: 14px; align-items: center; border: 0; border-top: 1px solid rgba(255, 255, 255, .12); border-radius: 0; background: none; }
  html[data-layout="b"] .also__item .ms { font-size: 22px; color: var(--teal); }
  html[data-layout="b"] .also__item strong { font-size: 15px; font-weight: 500; }
  html[data-layout="b"] .also__item span { font-size: 13px; color: rgba(255, 255, 255, .58); }
  html[data-layout="b"] .also .btn { order: 3; margin-top: 18px !important; height: 46px; width: 100%; border-radius: 13px; font-weight: 500; font-size: 15px; }

  /* ---- principles: three hairline rows ---- */
  html[data-layout="b"] .principles { display: block; }
  html[data-layout="b"] .principle { padding: 16px 0; border-top: 1px solid var(--bline); }
  html[data-layout="b"] .principle:last-child { border-bottom: 1px solid var(--bline); }
  html[data-layout="b"] .principle h3 { font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 3px; }
  html[data-layout="b"] .principle p { font-size: 14px; line-height: 1.5; margin: 0; }

  /* ---- pricing: the number, a button, the hairline list ---- */
  html[data-layout="b"] .textled { display: block; }
  html[data-layout="b"] .textled .b-h2 { margin: 0 0 20px; }
  html[data-layout="b"] .textled__n { font-family: var(--font); font-size: 48px; line-height: 1; font-weight: 600; letter-spacing: -.035em; color: var(--bink); }
  html[data-layout="b"] .textled__per { font-size: 15px; color: var(--bgrey); margin: 8px 0 20px; }
  html[data-layout="b"] .textled .btn { width: 100%; height: 52px; border-radius: 15px; background: var(--bdark); box-shadow: none; font-weight: 500; font-size: 16px; }
  html[data-layout="b"] .inclist { margin-top: 28px; }
  html[data-layout="b"] .inclist li { padding: 13px 0; border-color: var(--bline); font-size: 15px; color: var(--bink); }
  html[data-layout="b"] .inclist .ms { color: var(--teal-dark); font-size: 20px; }
  html[data-layout="b"] .inclist b { font-family: var(--font); font-size: 13px; font-weight: 500; color: var(--bgrey); }
  html[data-layout="b"] .inclist li.is-free b { color: var(--bink); }
  html[data-layout="b"] .inclist li.is-fee { font-size: 14px; color: var(--bgrey); }
  html[data-layout="b"] .inclist li.is-fee b { font-family: var(--font); font-size: 17px; font-weight: 600; color: var(--bink); }
  html[data-layout="b"] .inclist li.inclist__gap { height: 14px; }

  /* ---- faq ---- */
  html[data-layout="b"] .faq { max-width: none; margin: 0; padding: 0; }
  html[data-layout="b"] .faq details { border-color: var(--bline); padding: 0; }
  html[data-layout="b"] .faq details:first-child { border-top: 1px solid var(--bline); }
  html[data-layout="b"] .faq summary { font-size: 15.5px; font-weight: 500; color: var(--bink); padding: 16px 0; gap: 14px; }
  html[data-layout="b"] .faq summary .ms { color: var(--bgrey); font-size: 22px; }
  html[data-layout="b"] .faq details p { font-size: 14.5px; padding: 0 0 18px; }

  /* ---- demo: a flat form on the page, no band ---- */
  html[data-layout="b"] .cta { display: block; padding: 0; border-radius: 0; background: none; color: var(--bink); overflow: visible; }
  html[data-layout="b"] .cta h2 { font-size: 25px; line-height: 1.2; font-weight: 400; letter-spacing: -.022em; color: var(--bink); margin: 0 0 8px; }
  html[data-layout="b"] .cta > div:not(.cta__bg):not(.cta__form) > p { display: block; margin: 0 0 24px; max-width: 34ch; }
  html[data-layout="b"] .cta__form { background: none; border-radius: 0; box-shadow: none; padding: 0; color: var(--bink); }
  html[data-layout="b"] .form-grid { gap: 14px; }
  html[data-layout="b"] .field { gap: 7px; }
  html[data-layout="b"] .field label { font-size: 13px; font-weight: 500; color: var(--bink); }
  html[data-layout="b"] .field input, html[data-layout="b"] .field select, html[data-layout="b"] .field textarea { height: 50px; border-radius: 13px; border: 1px solid #d4d4d4; background: #fff; color: var(--bink); font-size: 16px; }
  html[data-layout="b"] .field textarea { height: auto; min-height: 96px; }
  html[data-layout="b"] .field input:focus, html[data-layout="b"] .field select:focus, html[data-layout="b"] .field textarea:focus { border-color: var(--bdark); box-shadow: 0 0 0 3px rgba(16, 35, 58, .12); }
  html[data-layout="b"] .cta__form .btn { height: 54px; border-radius: 15px; background: var(--bdark); box-shadow: none; font-weight: 500; font-size: 16px; margin-top: 18px !important; }
  html[data-layout="b"] .form-note { font-family: var(--font); font-size: 13px; color: var(--bgrey); text-align: left; margin-top: 12px; }
  html[data-layout="b"] .form-success { padding: 28px 0; text-align: left; }
  html[data-layout="b"] .form-success .ms { color: var(--teal-dark); }

  /* ---- footer ---- */
  html[data-layout="b"] .footer { margin-top: 64px; background: transparent; border-top: 1px solid var(--bline); padding: 32px 0 44px; }
  html[data-layout="b"] .footer .container { width: auto; margin: 0 var(--bgut); }
  html[data-layout="b"] .footer__grid { gap: 26px; }
  html[data-layout="b"] .footer__brand img { height: 22px; }
  html[data-layout="b"] .footer__brand p { font-size: 14px; margin-top: 12px; }
  html[data-layout="b"] .footer__mail { font-size: 15px; font-weight: 500; color: var(--bink); }
  html[data-layout="b"] .footer__brand p, html[data-layout="b"] .footer li a, html[data-layout="b"] .footer__bottom { font-family: var(--font); color: var(--bgrey); }
  html[data-layout="b"] .footer li a { font-size: 14.5px; padding: 5px 0; }
  html[data-layout="b"] .footer h4 { font-family: var(--font); font-size: 12px; font-weight: 500; letter-spacing: .06em; color: var(--bgrey); margin-bottom: 8px; }
  html[data-layout="b"] .footer__bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--bline); font-size: 12.5px; }
}

@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  html[data-layout="b"] .logos__row { animation: none; flex-wrap: wrap; width: auto; gap: 8px 0; }
  html[data-layout="b"] .logos .container { -webkit-mask-image: none; mask-image: none; margin: 0 var(--bgut); }
  html[data-layout="b"] .logos__row span.b-only { display: none !important; }
}
