/* Business page for ad visitors (index.html, <html data-hero="business">). Spike. Variant blocks are marked data-hero-only="business" or "default"; the default page renders as before. */
html:not([data-hero="business"]) [data-hero-only="business"],
html[data-hero="business"] [data-hero-only="default"] { display: none !important; }

/* hero: phones get the "Text us" button and See plans; non-touch devices (hover and fine pointer) keep the default page's phone-number form unchanged */
.arc-concept .imsg-hero .biz-cta { display: flex; flex-direction: column; align-items: stretch; gap: .625rem; margin-top: 1.5rem; max-width: 28rem; }
.biz-text-btn, .biz-plans-btn { display: flex; justify-content: center; align-items: center; text-align: center; min-height: 3.25rem; padding: .75rem 1.25rem; border-radius: 999px; font-size: 1rem; font-weight: 600; text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  html[data-hero="business"] .imsg-hero .biz-cta { display: none; }
}
@media not all and (hover: hover) and (pointer: fine) {
  html[data-hero="business"] .imsg-hero .demo-form, html[data-hero="business"] .imsg-hero .demo-card-note { display: none; }
}

/* features: nine tiles for owners (the AI assistant tile is hidden, the price-list tile added). On two columns the last visible one spans both so no tile is left alone. */
@media (min-width: 561px) and (max-width: 900px) {
  html[data-hero="business"] .arc-concept .imsg #features .feature:nth-last-child(2) { grid-column: 1 / -1; }
  html[data-hero="business"] .arc-concept .imsg #features .feature:nth-last-child(2) .feature-media { aspect-ratio: 16 / 7; }
}
#features .biz-chip { align-self: center; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 4px; padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, currentColor 8%, transparent); color: var(--ink, #1d1d1f); font-size: 13px; line-height: 1; font-weight: 500; }
#features .biz-chip svg { width: 16px; height: 16px; flex: none; color: #e5484d; }
#features .biz-file-demo { gap: 6px; }

/* html carries the page color so Safari's toolbar and overscroll fall back to it (same value as body; no visible change) */
html { background: #fafafa; }
html[data-theme="dark"] { background: #141518; }

/* inline "Text us to try it" button at the end of the business page's sections (How it works, Features) and beside "All use cases"; js/biz-page.js sets its href once on load */
.biz-cta-row { display: flex; justify-content: center; margin: clamp(24px, 3vw, 40px) 0 0; }
.biz-cta-row .biz-text-btn { width: auto; max-width: 100%; padding: .75rem 1.75rem; }

/* Use cases: the CTA sits in one centered row with "All use cases" (button first); stacks centered when they do not fit */
html[data-hero="business"] .imsg-cases .cases-all { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 20px; }
html[data-hero="business"] .imsg-cases .cases-all .biz-text-btn { width: auto; min-height: 44px; height: 44px; padding: 0 1.75rem; }

/* Mac hero (html.biz-mac, set in the head; Macintosh UA and no touch points): a Messages-style compose field and a secondary button that swaps in the phone-number form (html.biz-form) */
.biz-mac-hero, .biz-back { display: none; }
html.biz-mac[data-hero="business"] .imsg-hero .biz-cta { display: none; }
html.biz-mac[data-hero="business"] .imsg-hero .demo-form,
html.biz-mac[data-hero="business"] .imsg-hero .demo-card-note { display: none; }
html.biz-mac[data-hero="business"] .imsg-hero .biz-mac-hero { display: block; width: min(100%, 32rem); margin-top: 1.5rem; }
.biz-comp { display: flex; align-items: center; justify-content: space-between; gap: 12px; box-sizing: border-box; width: 100%; height: 56px; margin: 0; padding: 0 8px 0 22px; border-radius: 999px; background: #fff; border: 1px solid rgba(60,60,67,.22); box-shadow: 0 1px 2px rgba(16,20,32,.04); transition: border-color .15s ease, box-shadow .15s ease; }
.biz-comp-input { flex: 1; min-width: 0; height: 100%; padding: 0 8px 0 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1.0625rem; letter-spacing: -.01em; color: var(--ink, #1d1d1f); }
.biz-comp-input::placeholder { color: var(--ink-3, #8e8e93); }
.biz-comp-send { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px 0 18px; border: 0; border-radius: 999px; background: #0a84ff; color: #fff; font: inherit; font-size: 15px; font-weight: 600; line-height: 1; cursor: pointer; transition: background-color .15s ease, transform .12s ease, opacity .15s ease; }
.biz-comp-send svg { width: 14px; height: 14px; }
.biz-comp-send:hover:not(:disabled) { background: #2996ff; }
.biz-comp-send:active:not(:disabled) { transform: scale(.94); }
.biz-comp-send:disabled { background: #c7c7cc; cursor: default; }
html.biz-mac[data-hero="business"] .imsg-hero .biz-comp-hint { display: flex; align-items: center; min-height: 24px; margin: 16px 0 0 22px; opacity: 0; transition: opacity .2s ease; }   /* the row keeps its height while the badge is hidden; 16px clears the 3.5px focus ring by 12px+; 22px = the field's text start */
html.biz-mac[data-hero="business"] .imsg-hero .biz-comp:focus-within + .biz-comp-hint { opacity: 1; }
.biz-hint-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 5px; border-radius: 999px; background: rgba(0,0,0,.05); font-size: 12px; line-height: 1; color: var(--ink-2, #6e6e73); }
html[data-theme="dark"] .biz-hint-pill { background: rgba(255,255,255,.08); }
.biz-key { display: inline-grid; place-items: center; width: 18px; height: 16px; border: 1px solid currentColor; border-radius: 4px; opacity: .75; }
.biz-key svg { width: 10px; height: 10px; }
.biz-text-me-btn { display: inline-flex; justify-content: center; align-items: center; min-height: 2.5rem; margin-top: 16px; padding: 0 1.25rem; border-radius: 999px; font-size: .9375rem; font-weight: 600; }
html[data-theme="dark"] .biz-comp { background: rgba(44,44,46,.9); border-color: rgba(255,255,255,.2); }
html[data-theme="dark"] .biz-comp-send:disabled { background: #48484a; }
/* the form view: the original phone-number form, with a quiet way back to the composer */
html.biz-mac.biz-form[data-hero="business"] .imsg-hero .biz-mac-hero { display: none; }
html.biz-mac.biz-form[data-hero="business"] .imsg-hero .demo-form { display: flex; }
html.biz-mac.biz-form[data-hero="business"] .imsg-hero .demo-card-note { display: block; }
.biz-comp .biz-comp-input:focus, .biz-comp .biz-comp-input:focus-visible { outline: 0 !important; box-shadow: none !important; }   /* the ring is on the whole bar (:focus-within), not a square on the text */

/* Mac form view: the same small badge and secondary button as the composer view, so swapping keeps the total height (composer 56 + 4 + 16 + 24 + 16 + 40 = form 60 + 16 + 24 + 16 + 40) */
html.biz-mac[data-hero="business"] .imsg-hero .biz-mac-hero { padding-bottom: 4px; }
html.biz-mac.biz-form[data-hero="business"] .imsg-hero .demo-card-note { display: flex; width: fit-content; align-items: center; gap: 6px; box-sizing: border-box; height: 24px; margin: 16px 0 0 5px; padding: 0 10px 0 7px; border-radius: 999px; background: rgba(0,0,0,.05); font-size: 12px; line-height: 1; color: var(--ink-2, #6e6e73); }
html[data-theme="dark"].biz-mac.biz-form[data-hero="business"] .imsg-hero .demo-card-note { background: rgba(255,255,255,.08); }
html.biz-mac.biz-form[data-hero="business"] .imsg-hero .demo-card-note::before { content: ""; flex: none; width: 13px; height: 13px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 1.5 2.5 3.5v4c0 3 2.3 5.4 5.5 7 3.2-1.6 5.5-4 5.5-7v-4z'/%3E%3Cpath d='m5.5 8 1.8 1.8 3.5-3.4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 1.5 2.5 3.5v4c0 3 2.3 5.4 5.5 7 3.2-1.6 5.5-4 5.5-7v-4z'/%3E%3Cpath d='m5.5 8 1.8 1.8 3.5-3.4'/%3E%3C/svg%3E") center / contain no-repeat; }
html.biz-mac.biz-form[data-hero="business"] .imsg-hero .biz-back { display: flex; width: fit-content; margin: 16px 0 0; }
html.biz-mac[data-hero="business"] .imsg-hero .biz-text-me-btn { min-height: 40px; height: 40px; }
html[data-hero="business"] .imsg-hero .biz-back { display: none; }   /* only the Mac form view shows it (the rule above wins there) */

/* One row under the bar in both views: the secondary button on the left, the badge on the right (under the send button), 16px below the bar. */
html.biz-mac[data-hero="business"] .imsg-hero .biz-mac-hero { padding-bottom: 4px; }   /* composer 56 + 16 + 40 + 4 = form 60 + 16 + 40 */
.biz-comp-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; margin-top: 16px; }
html.biz-mac[data-hero="business"] .imsg-hero .biz-comp-row .biz-text-me-btn { margin: 0; }
html.biz-mac[data-hero="business"] .imsg-hero .biz-comp-hint { min-height: 0; margin: 0 8px 0 auto; }
html.biz-mac[data-hero="business"] .imsg-hero .biz-comp:focus-within + .biz-comp-row .biz-comp-hint { opacity: 1; }
html.biz-mac.biz-form[data-hero="business"] .imsg-hero .demo-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 16px; }
html.biz-mac.biz-form[data-hero="business"] .imsg-hero .demo-form { flex: 0 0 100%; }
html.biz-mac.biz-form[data-hero="business"] .imsg-hero .biz-back { order: 1; margin: 16px 0 0; }
html.biz-mac.biz-form[data-hero="business"] .imsg-hero .demo-card-note { order: 2; margin: 16px 8px 0 auto; }
@media (max-width: 1100px) {   /* too narrow for both on one line: the badge goes above the button, right-aligned */
  html.biz-mac[data-hero="business"] .imsg-hero .biz-comp-row { flex-wrap: wrap-reverse; }
  html.biz-mac.biz-form[data-hero="business"] .imsg-hero .demo-card-note { flex: 0 0 auto; margin: 16px 8px 0 auto; }
  html.biz-mac.biz-form[data-hero="business"] .imsg-hero .demo-card::after { content: none; }
  html.biz-mac.biz-form[data-hero="business"] .imsg-hero .biz-back { order: 3; flex: 0 0 auto; margin: 12px auto 0 0; }
  html.biz-mac.biz-form[data-hero="business"] .imsg-hero .demo-card-note { flex-basis: 100%; justify-content: flex-end; margin-right: 8px; }
}
