/* Contact Boards demo (the start page's Boards section, the Contact Boards pages): an HTML replica of
   the board in Starrise Contacts for Mac and on iPhone, played by assets/boards-hero/boards-hero.js.
   Like the Mac demo (assets/mac-hero/) it is laid out in the app's own points on a 1520 x 860 stage
   and scaled to its container: a 1290 x 700 Mac window and, in front of it, an iPhone 17 Pro Max
   (440 x 956 points) at 70 %. Sizes come from Views/Boards/ContactBoardView.swift (Mac columns 300 pt
   wide with 14 pt gaps and 24 pt margins, iPhone columns the screen width less 26 pt margins, 10 pt
   gaps; cards with a 36 pt photo, 14/12 pt padding, 16 pt corners) and the App Store capture of the
   board. Icons: the Mac demo's SF Symbols sprite and inline SVG. */
.bh { --a: #fc4d02; --a12: rgba(252,77,2,.12); --a25: rgba(252,77,2,.25);
  --ink: #1d1d1f; --sec: rgba(60,60,67,.6); --sep: rgba(0,0,0,.1);
  --ease: cubic-bezier(.23, 1, .32, 1); --move: cubic-bezier(.45, 0, .2, 1); --sheet: cubic-bezier(.32, .72, 0, 1);
  --sf: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro', Inter, system-ui, sans-serif;
  position: relative; margin: 0 auto; max-width: 1240px; text-align: left; font-family: var(--sf); font-size: 13px; line-height: 1.25;
  color: var(--ink); letter-spacing: 0; -webkit-font-smoothing: antialiased; }
.bh *, .bh *::before, .bh *::after { box-sizing: border-box; }
.bh [hidden] { display: none !important; }
.bh img { display: block; max-width: none; }
.bh svg { display: block; }
.bh i.sy { display: inline-block; flex: none; background: url(../mac-hero/sym.webp) no-repeat; }
/* On the guide pages the demo is wider than the text column, like the comparison tables. */
.guide-body .bh { left: 50%; width: min(1100px, calc(100vw - 2rem)); max-width: none; transform: translateX(-50%); margin: 0.5rem 0 2.5rem; }

.bh-frame { position: relative; width: 100%; }
.bh-stage { position: absolute; left: 0; top: 0; width: 1520px; height: 860px; transform-origin: 0 0; transform: scale(var(--s, 1)); }
@supports (zoom: 1) { .bh-stage { transform: none; zoom: var(--s, 1); } }
.bh-cam { position: absolute; inset: 0; }

/* Before the demo is built (and without JavaScript) the iPhone screenshot stands in, in the demo's box. */
.bh-poster { position: relative; aspect-ratio: 1520 / 860; margin-bottom: 61px; display: grid; place-items: center; transition: opacity 450ms; }
.bh-poster picture { display: block; height: 100%; }
.bh-poster img { display: block; height: 100%; width: auto; }
.bh.live .bh-poster { position: absolute; left: 0; right: 0; top: 0; margin: 0; pointer-events: none; }
.bh-poster.out { opacity: 0; } .bh-poster.gone { visibility: hidden; }

/* ---------- Mac window ---------- */
.bh-win { position: absolute; left: 12px; top: 22px; width: 1290px; height: 700px; border-radius: 26px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.22), 0 2px 6px rgba(0,0,0,.05), 0 16px 40px rgba(0,0,0,.10), 0 40px 90px rgba(60,30,10,.14); }
.bh-lights { position: absolute; left: 19px; top: 19px; display: flex; gap: 9px; z-index: 6; }
.bh-lights b { width: 14px; height: 14px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.14); }
.bh-lights b:nth-child(2) { background: #febc2e; } .bh-lights b:nth-child(3) { background: #28c840; }
.bh-side { position: absolute; left: 8px; top: 8px; bottom: 8px; width: 220px; border-radius: 18px; background: #f7f7f7; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.05); padding: 51px 8px 8px; z-index: 5; }
.bh-nav { display: flex; align-items: center; gap: 12px; height: 32px; padding: 0 10px; margin-bottom: 2px; border-radius: 8px; font-size: 13px; }
.bh-nav .ic { width: 22px; display: grid; place-items: center; color: var(--a); }
.bh-nav.on { background: rgba(0,0,0,.1); } .bh-nav.on .lb { color: var(--a); font-weight: 600; }
.bh-bar { position: absolute; left: 228px; right: 0; top: 0; height: 52px; z-index: 4; background: #fff; }
.bh-bar .ttl { position: absolute; left: 24px; top: 15px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.bh-lpick { position: absolute; left: 104px; top: 11px; height: 30px; padding: 0 12px 0 14px; border-radius: 15px; background: rgba(0,0,0,.05); display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; }
.bh-lpick svg { width: 10px; height: 6px; color: var(--sec); }
.bh-sf { position: absolute; right: 74px; top: 9px; width: 246px; height: 34px; border-radius: 17px; background: rgba(0,0,0,.05); display: flex; align-items: center; gap: 7px; padding: 0 12px;
  font-size: 13px; color: rgba(0,0,0,.4); transition: box-shadow 160ms; white-space: nowrap; overflow: hidden; }
.bh-sf.focus { box-shadow: 0 0 0 3.5px var(--a25); color: var(--ink); background: #fff; }
.bh-sf .q { color: var(--ink); }
.bh-caret { display: inline-block; width: 1.5px; height: 16px; background: var(--ink); vertical-align: -3px; margin-left: .5px; animation: bh-blink 1.05s steps(1) infinite; }
@keyframes bh-blink { 50% { opacity: 0; } }
.bh-sf .x { margin-left: auto; width: 16px; height: 16px; border-radius: 50%; background: rgba(0,0,0,.25); display: grid; place-items: center; }
.bh-sf .x svg { width: 7px; height: 7px; color: #fff; }
.bh-plus { position: absolute; right: 14px; top: 8px; width: 44px; height: 36px; border-radius: 18px; background: rgba(0,0,0,.045); display: grid; place-items: center; }
.bh-plus svg { width: 16px; height: 16px; color: #3c3c43; }

/* The board (MacBoardsDetailView): title, then the columns side by side. */
.bh-mb { position: absolute; left: 228px; right: 0; top: 52px; bottom: 0; background: #fbfbfb; }
.bh-btitle { position: absolute; left: 24px; top: 14px; display: flex; align-items: center; gap: 7px; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.bh-btitle svg { width: 8px; height: 13px; color: var(--a); }
.bh-mb .bh-cols { position: absolute; left: 24px; top: 58px; display: flex; gap: 14px; align-items: flex-start; }
.bh-col { flex: none; }
.bh-mb .bh-col { width: 300px; }
.bh-ch { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 4px; font-weight: 700; white-space: nowrap; }
.bh-ch .n { color: var(--sec); font-variant-numeric: tabular-nums; }
.bh-ch .more { margin-left: auto; width: 36px; display: grid; place-items: center; color: var(--sec); }
.bh-ch .more svg { width: 16px; height: 4px; }
.bh-mb .bh-ch { font-size: 13px; margin-bottom: 4px; }
.bh-cards { position: relative; display: flex; flex-direction: column; gap: 8px; }
.bh-card { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.82);
  box-shadow: inset 0 0 0 .5px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04), 0 6px 18px rgba(0,0,0,.05); transition: opacity 200ms, transform 200ms; }
.bh-card .nm { font-size: 13px; line-height: 16px; white-space: nowrap; }
.bh-card .co { font-size: 11px; line-height: 14px; color: var(--sec); white-space: nowrap; margin-top: 2px; }
.bh-card.ghost { opacity: .3; }
.bh-card.hide { visibility: hidden; }
.bh-card.out { opacity: 0; transform: scale(.96); }
.bh-card.gone { display: none; }
.bh-card.synced::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 2px var(--a); animation: bh-sync 1.6s var(--ease) forwards; }
@keyframes bh-sync { 0%, 50% { opacity: 1; } 100% { opacity: 0; } }
.bh-card.pop { animation: bh-pop 520ms var(--ease) both; }
@keyframes bh-pop { from { opacity: 0; transform: scale(.9); } }
.bh-card.press { transform: scale(.98); }
/* The card under the pointer or finger while it is dragged. */
.bh-lift { position: absolute; z-index: 20; margin: 0; pointer-events: none; background: #fff; transform-origin: 50% 50%;
  box-shadow: inset 0 0 0 .5px rgba(0,0,0,.08), 0 12px 32px rgba(0,0,0,.16), 0 2px 6px rgba(0,0,0,.08); transition-property: transform; transition-timing-function: var(--move); }
.bh-ins { position: absolute; left: 4px; right: 4px; height: 3px; border-radius: 2px; background: var(--a); opacity: 0; transition: opacity 160ms, top 200ms var(--ease); }
.bh-ins.on { opacity: 1; }
.bh-add { display: flex; align-items: center; gap: 9px; height: 44px; margin-top: 12px; padding: 0 14px; border-radius: 22px; background: rgba(255,255,255,.82); color: var(--a); font-size: 13px; font-weight: 500;
  box-shadow: inset 0 0 0 .5px rgba(0,0,0,.08), 0 6px 18px rgba(0,0,0,.05); transition: transform 120ms; }
.bh-add.press { transform: scale(.97); }
.bh-add .pc { width: 18px; height: 18px; border-radius: 50%; background: var(--a); display: grid; place-items: center; }
.bh-add .pc svg { width: 9px; height: 9px; color: #fff; }

.bh-av { flex: none; position: relative; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: #e3e3e8; color: #3c3c43; display: grid; place-items: center; font-size: 14px; font-weight: 500; }
.bh-av img { width: 100%; height: 100%; object-fit: cover; }
.bh-av::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 .5px rgba(60,60,67,.4); }

/* Add Contacts sheet (Mac) */
.bh-sdim { position: absolute; inset: 0; background: rgba(0,0,0,.12); opacity: 0; transition: opacity 260ms; z-index: 11; pointer-events: none; }
.bh-sdim.open { opacity: 1; }
.bh-sheet { position: absolute; left: 470px; top: 110px; width: 440px; height: 404px; border-radius: 26px; background: #f2f2f2; z-index: 12; overflow: hidden;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.2), 0 24px 60px rgba(0,0,0,.22); opacity: 0; transform: translateY(14px) scale(.98); transition: opacity 260ms, transform 380ms var(--sheet); }
.bh-sheet.open { opacity: 1; transform: none; }
.bh-sheet .hd { position: relative; height: 56px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; }
.bh-sheet .bt { position: absolute; top: 10px; height: 36px; padding: 0 16px; border-radius: 18px; background: rgba(0,0,0,.05); display: grid; place-items: center; font-size: 13px; font-weight: 500; transition: background-color 140ms, color 140ms; }
.bh-sheet .bt.bl { left: 10px; } .bh-sheet .bt.br { right: 10px; color: rgba(0,0,0,.3); font-weight: 700; }
.bh-sheet .bt.br.ok { color: #fff; background: var(--a); }
.bh-sheet .bt.press { filter: brightness(.9); }
.bh-sheet .sf { margin: 2px 16px 12px; height: 32px; border-radius: 9px; background: rgba(0,0,0,.06); display: flex; align-items: center; gap: 7px; padding: 0 10px; font-size: 13px; color: rgba(0,0,0,.4); }
.bh-sheet .sf svg, .bh-sf > svg { width: 14px; height: 14px; flex: none; }
.bh-sheet .ls { margin: 0 16px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 .5px #e4e4e4; overflow: hidden; }
.bh-sheet .r { position: relative; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 14px; transition: background-color 140ms; }
.bh-sheet .r + .r::before { content: ''; position: absolute; left: 62px; right: 0; top: 0; border-top: .5px solid var(--sep); }
.bh-sheet .r.press { background: rgba(0,0,0,.05); }
.bh-sheet .r .nm { font-size: 13px; } .bh-sheet .r .co { font-size: 11px; color: var(--sec); margin-top: 2px; }
.bh-sheet .ck { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.2); display: grid; place-items: center; transition: background-color 160ms, box-shadow 160ms; }
.bh-sheet .ck svg { width: 11px; height: 9px; color: #fff; opacity: 0; transition: opacity 160ms; }
.bh-sheet .r.on .ck { background: var(--a); box-shadow: none; } .bh-sheet .r.on .ck svg { opacity: 1; }

/* ---------- iPhone ---------- */
.bh-phone { position: absolute; left: 1188px; top: 160px; width: 464px; height: 980px; padding: 12px; border-radius: 76px; background: #1b1b1d; transform-origin: 0 0; transform: scale(.7); z-index: 8;
  box-shadow: inset 0 0 0 2px #3a3a3c, 0 0 0 1.5px #8e8e93, 0 30px 80px rgba(0,0,0,.28), 0 10px 24px rgba(0,0,0,.18); }
.bh-screen { position: relative; width: 440px; height: 956px; border-radius: 64px; overflow: hidden; background: #f2f2f7; font-size: 17px; }
.bh-island { position: absolute; left: 50%; top: 23px; width: 126px; height: 37px; margin-left: -63px; border-radius: 19px; background: #000; z-index: 9; }
.bh-status { position: absolute; left: 0; right: 0; top: 0; height: 54px; z-index: 3; }
.bh-status .tm { position: absolute; left: 60px; top: 21px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.bh-status .ics { position: absolute; right: 38px; top: 25px; display: flex; gap: 7px; align-items: center; }
.bh-ptop { position: absolute; left: 20px; right: 20px; top: 62px; height: 44px; display: flex; align-items: center; justify-content: space-between; }
.bh-circ { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.9); display: grid; place-items: center; color: var(--a);
  box-shadow: 0 0 0 .5px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.08); }
.bh-circ svg { width: 22px; height: 22px; }
.bh-ptop .ls { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 600; }
.bh-ptop .ls svg { width: 13px; height: 8px; color: var(--a); }
.bh-ptitle { position: absolute; left: 20px; top: 122px; display: flex; align-items: center; gap: 9px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.bh-ptitle svg { width: 9px; height: 15px; color: var(--a); }
.bh-pview { position: absolute; left: 0; right: 0; top: 160px; bottom: 0; overflow: hidden; }
.bh-ptrack { position: absolute; left: 26px; top: 0; display: flex; gap: 10px; align-items: flex-start; transition: transform 520ms var(--move); }
.bh-ptrack .bh-col { width: 388px; }
.bh-ptrack .bh-ch { height: 34px; font-size: 17px; font-weight: 600; padding: 0 8px 0 10px; margin-bottom: 6px; }
.bh-ptrack .bh-ch .more svg { width: 18px; height: 5px; }
.bh-screen .bh-cards { gap: 8px; }
.bh-screen .bh-card { padding: 14px 16px 14px 14px; gap: 14px; border-radius: 22px; background: rgba(255,255,255,.9); box-shadow: 0 0 0 .5px rgba(0,0,0,.05), 0 6px 20px rgba(0,0,0,.05); }
.bh-screen .bh-card .nm { font-size: 17px; line-height: 21px; } .bh-screen .bh-card .co { font-size: 15px; line-height: 19px; margin-top: 1px; }
.bh-screen .bh-lift { background: #fff; box-shadow: 0 16px 40px rgba(0,0,0,.18), 0 3px 8px rgba(0,0,0,.08); }
.bh-screen .bh-add { height: 50px; margin-top: 16px; padding: 0 18px; border-radius: 25px; font-size: 17px; gap: 12px; background: rgba(255,255,255,.9); box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.bh-screen .bh-add .pc { width: 22px; height: 22px; } .bh-screen .bh-add .pc svg { width: 11px; height: 11px; }
.bh-screen .bh-ins { height: 4px; }
.bh-pbot { position: absolute; left: 16px; right: 17px; top: 823px; height: 44px; display: flex; gap: 10px; z-index: 3; }
.bh-psearch { flex: 1; border-radius: 22px; background: rgba(255,255,255,.92); display: flex; align-items: center; gap: 8px; padding: 0 14px; font-size: 17px; color: rgba(60,60,67,.45);
  box-shadow: 0 0 0 .5px rgba(0,0,0,.05), 0 6px 20px rgba(0,0,0,.08); white-space: nowrap; overflow: hidden; }
.bh-psearch svg { width: 19px; height: 19px; flex: none; }
.bh-pplus { width: 44px; height: 44px; border-radius: 50%; background: var(--a); display: grid; place-items: center; box-shadow: 0 6px 16px rgba(252,77,2,.3); }
.bh-pplus svg { width: 20px; height: 20px; color: #fff; }
.bh-tabs { position: absolute; left: 21px; right: 21px; top: 875px; height: 60px; border-radius: 30px; background: rgba(255,255,255,.92); display: flex; align-items: center; padding: 4px; z-index: 3;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.1); }
.bh-tabs span { flex: 1; height: 52px; border-radius: 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10px; font-weight: 500; color: #1d1d1f; }
.bh-tabs span svg { width: 24px; height: 22px; }
.bh-tabs span.on { background: rgba(0,0,0,.06); color: var(--a); }
/* Soft fade of the board under the search and tab bars, like the iOS 26 scroll edge. */
.bh-screen::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 170px; background: linear-gradient(rgba(242,242,247,0), #f2f2f7 70%); z-index: 2; pointer-events: none; }

/* Pointer and finger */
.bh-cursor { position: absolute; left: 0; top: 0; width: 25px; height: 34px; z-index: 30; pointer-events: none; transform: translate(900px, 760px); opacity: 0;
  transition: transform var(--dur, 600ms) var(--move), opacity 200ms; }
.bh-cursor.on { opacity: 1; }
.bh-cursor svg { width: 100%; height: 100%; transition: transform 100ms; transform-origin: 3px 3px; }
.bh-cursor.down svg { transform: scale(.86); }
.bh-touch { position: absolute; left: 0; top: 0; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; z-index: 30; pointer-events: none; opacity: 0;
  background: rgba(120,120,128,.42); box-shadow: 0 0 0 2px rgba(255,255,255,.75), 0 2px 8px rgba(0,0,0,.18);
  transition: transform var(--dur, 600ms) var(--move), opacity 180ms, scale 180ms; scale: 1.25; }
.bh-touch.on { opacity: 1; scale: 1; }
.bh-touch.down { scale: .85; }

/* Chapter chips, as under the Mac demo */
.bh-chiprow { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.bh-chip { position: relative; overflow: hidden; border: 0; cursor: pointer; font: 600 15px/1 Figtree, Inter, system-ui, sans-serif; color: #55555a; background: #ece9e6; padding: 12px 20px; border-radius: 999px; transition: color 200ms, background-color 200ms; }
.bh-chip:hover { color: var(--ink); background: #e4e0dc; }
.bh-chip.on, .bh-chip.on:hover { color: #fff; background: #1d1d1f; }
.bh-chip .p { position: absolute; left: 20px; right: 20px; bottom: 6px; height: 2px; border-radius: 1px; background: var(--a); transform-origin: 0 0; transform: scaleX(0); }
.bh-chip.on .p { transform: scaleX(var(--prog, 0)); transition: transform 60ms linear; }
@media (max-width: 640px) {
  .bh-chiprow { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 16px -16px 0; padding: 0 16px; }
  .bh-chiprow::-webkit-scrollbar { display: none; }
  .bh-chip { flex: none; font-size: 14px; padding: 10px 16px; } .bh-chip .p { left: 16px; right: 16px; }
}
@media (prefers-reduced-motion: reduce) { .bh *, .bh *::before, .bh *::after { transition-duration: 0s !important; animation: none !important; } }
