/* Business page: How it works section (index.html #how-it-works). Own file so edits to other business blocks cannot delete it. */
/* how it works: three full phones (the site's own Apple-bezel phone, css/phone-frame.css), each with a label and one caption line */
.imsg-biz-how { padding-block: var(--home-section-pad, clamp(48px, 7vw, 96px)) 0; }
.biz-phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); }
.biz-fig { display: flex; flex-direction: column; align-items: center; margin: 0; }
.biz-phc { container-type: normal; height: auto; padding: 0; overflow: visible; -webkit-mask-image: none; mask-image: none; width: min(100%, 16.5rem); }
.biz-phc .pg-ph { --bt-u: .8px; }
.biz-phc .pg-ph-thread { height: auto; flex: 1 1 auto; gap: 1.6cqw; padding: calc(32 * var(--th-u)) 4.5cqw 2cqw; }
.biz-phc .pg-ph-thread::after { display: none; }
.biz-phc .pg-ph-thread { justify-content: flex-start; }
.biz-phc .pg-b { font-size: 4.7cqw; line-height: 1.28; max-width: 80%; padding: 2.1cqw 3.4cqw; border-radius: 4.6cqw; }
.biz-phc .pg-ph-stamp { font-size: 3cqw; margin-bottom: 1cqw; }
.biz-phc .biz-who { align-self: flex-start; margin: 1.2cqw 0 -.6cqw 3.4cqw; font-size: 3cqw; line-height: 1.2; color: var(--pg-phone-meta); }
.biz-phc .biz-rcpt { align-self: flex-end; margin: 0 1.5cqw 0 0; font-size: 3cqw; line-height: 1.2; color: var(--pg-phone-meta); }
.biz-phc .biz-rcpt b { font-weight: 600; }
.biz-phc .biz-input { flex: none; display: flex; align-items: center; gap: 2cqw; padding: 1.5cqw 3.5cqw 9cqw; }
.biz-phc .biz-plus { flex: none; display: grid; place-items: center; width: 8cqw; height: 8cqw; border-radius: 50%; background: var(--pg-bubble-in); color: var(--pg-phone-meta); }
.biz-phc .biz-plus svg { width: 3.6cqw; height: 3.6cqw; }
.biz-phc .biz-field { flex: 1; padding: 2cqw 3.5cqw; border: 1px solid var(--pg-phone-line); border-radius: 99px; font-size: 3.8cqw; line-height: 1.2; color: var(--pg-phone-meta); }
.biz-fig figcaption { display: grid; gap: .375rem; margin-top: 1.5rem; max-width: 18rem; text-align: center; }
.biz-fig figcaption b { font-size: 1.0625rem; line-height: 1.3; font-weight: 600; color: var(--ink); }
.biz-fig figcaption span { font-size: 1rem; line-height: 1.45; color: var(--ink-2); text-wrap: balance; }
/* phones and tablets: one native scroll-snap row, the next phone peeking in from the right; no script, no transforms on scroll */
@media (max-width: 900px) {
  .biz-phones { display: flex; gap: 16px; margin-inline: calc(50% - 50vw); padding-inline: 15vw; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
  .biz-phones::-webkit-scrollbar { display: none; }
  .biz-fig { flex: 0 0 70vw; max-width: 19rem; scroll-snap-align: center; }
  .biz-phc { width: 100%; }
}

/* owner inbox cards (How it works, items 2 and 3): an illustration, same size and shadow as the phone beside them.
   One frosted header (window title, contact, automatic-replies switch), the thread passing under it with soft fades, and a composer; no divider lines. */
.biz-card { --bc-bg: #fff; --bc-glass: rgba(255,255,255,.9); --bc-ink: #1d1d1f; --bc-meta: #8e8e93; --bc-line: rgba(16,20,32,.1); --bc-in: #e9e9eb; --bc-field: #f2f2f4; --bc-top: calc(38px + 17cqw); --bc-bot: 17cqw;
  container-type: inline-size; position: relative; box-sizing: border-box; width: min(100%, 16.5rem); aspect-ratio: 1350 / 2760; overflow: hidden;
  border-radius: 2rem; border: 1px solid var(--bc-line); background: var(--bc-bg); color: var(--bc-ink); text-align: left;
  box-shadow: 0 1px 2px rgba(16,20,32,.06), 0 28px 60px -24px rgba(16,20,32,.32);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
[data-theme="dark"] .biz-card { --bc-bg: #1c1c1e; --bc-glass: rgba(28,28,30,.9); --bc-ink: #f5f5f7; --bc-meta: #8d8d92; --bc-line: rgba(255,255,255,.14); --bc-in: #2c2c2e; --bc-field: #2c2c2e; box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 28px 60px -24px rgba(0,0,0,.7); }
.bc-top { position: absolute; z-index: 2; top: 0; left: 0; right: 0; background: var(--bc-glass); }
@media (hover: hover) and (pointer: fine) {
  .biz-card { --bc-glass: rgba(255,255,255,.62); }
  [data-theme="dark"] .biz-card { --bc-glass: rgba(28,28,30,.6); }
  .bc-top, .bc-comp { -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); }
}
.bc-bar { position: relative; display: flex; align-items: center; justify-content: center; height: 38px; padding: 0 5cqw; }   /* macOS Tahoe: lights' centers 19px from the top and left edge + 18px, inside the large corner curve */
.bc-dots { position: absolute; left: 18px; top: 13px; display: flex; gap: 8px; }
.bc-dots i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.12); }
.bc-dots i:nth-child(1) { background: #ff5f57; }
.bc-dots i:nth-child(2) { background: #febc2e; }
.bc-dots i:nth-child(3) { background: #28c840; }
.bc-title { font-size: 13px; font-weight: 500; line-height: 1; color: var(--bc-meta); }
.bc-row { display: flex; align-items: center; justify-content: space-between; padding: 1cqw 5cqw 3.5cqw; }
.bc-who { display: grid; gap: .6cqw; }
.bc-who b { font-size: 4.2cqw; font-weight: 600; letter-spacing: -.01em; }
.bc-who span { font-size: 3cqw; color: var(--bc-meta); }
.bc-sw { display: flex; align-items: center; gap: 2cqw; font-size: 3cqw; color: var(--bc-meta); }
.bc-switch { position: relative; flex: none; width: 8.6cqw; height: 5.2cqw; border-radius: 99px; background: #c7c7cc; }
.bc-switch::after { content: ""; position: absolute; top: .4cqw; left: .4cqw; width: 4.4cqw; height: 4.4cqw; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.bc-switch.is-on { background: #34c759; }
.bc-switch.is-on::after { left: 4.2cqw; }
.bc-thread { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 1.4cqw; padding: calc(var(--bc-top) + 2cqw) 5cqw var(--bc-bot); overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent calc(var(--bc-top) - 4cqw), #000 calc(var(--bc-top) + 2cqw), #000 calc(100% - var(--bc-bot) - 6cqw), transparent calc(100% - var(--bc-bot) + 2cqw));
  mask-image: linear-gradient(to bottom, transparent calc(var(--bc-top) - 4cqw), #000 calc(var(--bc-top) + 2cqw), #000 calc(100% - var(--bc-bot) - 6cqw), transparent calc(100% - var(--bc-bot) + 2cqw)); }
.bc-b { max-width: 80%; padding: 2cqw 3.2cqw; border-radius: 4.4cqw; font-size: 3.9cqw; line-height: 1.28; }
.bc-in { align-self: flex-start; background: var(--bc-in); color: var(--bc-ink); }
.bc-out { align-self: flex-end; background: #0b84fe; color: #fff; }
.bc-tag { align-self: flex-end; margin: -.4cqw 1.5cqw 1cqw 0; font-size: 2.6cqw; line-height: 1.2; color: var(--bc-meta); }
.bc-comp { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 2cqw; padding: 2.5cqw 4cqw 4.5cqw; background: var(--bc-glass); }
.bc-field { flex: 1; padding: 2.2cqw 3.5cqw; border-radius: 99px; background: var(--bc-field); font-size: 3.4cqw; line-height: 1.2; color: var(--bc-meta); }
.bc-send { flex: none; display: grid; place-items: center; width: 7.4cqw; height: 7.4cqw; border-radius: 50%; background: #0b84fe; color: #fff; }
.bc-send svg { width: 3.8cqw; height: 3.8cqw; }
@media (max-width: 900px) { .biz-card { width: 100%; } }

/* viewpoint pills above each item: what the customer sees vs what the owner sees */
.biz-view { display: inline-flex; align-items: center; gap: .375rem; height: 1.75rem; margin-bottom: 1rem; padding: 0 .75rem; border-radius: 999px; background: color-mix(in srgb, var(--ink, #1d1d1f) 6%, transparent); color: var(--ink-2, #6e6e73); font-size: .8125rem; font-weight: 500; line-height: 1; white-space: nowrap; }
.biz-view svg { width: .875rem; height: .875rem; flex: none; }

/* The shared Apple-bezel phone casts its shadow with filter: drop-shadow on a pseudo-element; on this page, after scrolling to the bottom and back, WebKit left a black patch in the top-left corner of the page. The phone has no shadow here: a box-shadow on the phone's box draws a rounded card around the bezel, because the box is not the bezel's shape. */
.biz-phc .imsg-phone.pg-apple::before { filter: none !important; }
