/* ==========================================================================
   Handoff page chrome (ho-). The document around the screens, not the product.
   ========================================================================== */
html { scroll-behavior: smooth; }
body { margin: 0; background: #e6e8ec; color: #0e1116; font: 400 15px/22px "Atkinson Hyperlegible Next", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.ho, .ho * { box-sizing: border-box; }
.ho h1, .ho h2, .ho h3, .ho p { margin: 0; }
.ho { max-width: 1280px; margin: 0 auto; padding: 28px max(20px, env(safe-area-inset-right, 0px)) 80px max(20px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 24px; }
.ho-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 0 4px; color: #5b6472; font-size: 14px; }
.ho-top .si-logo { color: #0e1116; }
.ho-top nav { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.ho-top a, .ho-top nav span { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 17px; background: #f6f7f9; color: #0e1116; text-decoration: none; font-weight: 600; }
.ho-top nav span { color: #8a93a1; }
.ho-intro { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; padding: 12px 4px 4px; }
.ho-intro h1 { font: 600 44px/46px "Instrument Sans", sans-serif; letter-spacing: -0.035em; text-wrap: balance; }
.ho-intro p { color: #5b6472; font-size: 17px; line-height: 26px; }
.ho-k { font: 500 13px/18px "Atkinson Hyperlegible Mono", monospace; color: #5b6472; }
.ho-panel { background: #f6f7f9; border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 26px; scroll-margin-top: 16px; }
.ho-panel > header { display: flex; flex-direction: column; gap: 4px; max-width: 70ch; }
.ho-panel > header h2 { font: 600 28px/32px "Instrument Sans", sans-serif; letter-spacing: -0.025em; }
.ho-panel > header p { color: #5b6472; }
.ho-work { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 40px; align-items: center; }
.ho-notes { display: flex; flex-direction: column; gap: 22px; max-width: 560px; }
.ho-notes h3 { font: 600 18px/24px "Instrument Sans", sans-serif; letter-spacing: -0.015em; margin-bottom: 4px; }
.ho-notes p, .ho-notes li { color: #5b6472; }
.ho-notes ol, .ho-notes ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.ho-notes b, .ho-card li b { color: #0e1116; font-weight: 600; }
.ho-try { display: flex; flex-wrap: wrap; gap: 8px; }
.ho-try button { height: 36px; padding: 0 14px; border: 0; border-radius: 18px; background: #0e1116; color: #fff; font: 600 14px/1 "Atkinson Hyperlegible Next", sans-serif; cursor: pointer; }
.ho-try button.is-quiet { background: #fff; color: #0e1116; box-shadow: inset 0 0 0 1.5px #cfd5de; }
.ho-group { display: flex; flex-direction: column; gap: 18px; }
.ho-group > h3 { font: 600 18px/24px "Instrument Sans", sans-serif; letter-spacing: -0.015em; }
.ho-states { display: grid; grid-template-columns: repeat(auto-fill, minmax(286px, 1fr)); gap: 30px 20px; }
.ho-state { margin: 0; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.ho-state figcaption { width: 270px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 18px; color: #5b6472; }
.ho-state figcaption b { font-size: 15px; line-height: 20px; color: #0e1116; font-weight: 600; }
.ho-id { font: 600 12px/18px "Atkinson Hyperlegible Mono", monospace; background: #0e1116; color: #ffd60a; padding: 1px 6px; border-radius: 6px; margin-right: 6px; }
.ho-spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.ho-card { background: #fff; border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ho-card.is-wide { grid-column: 1 / -1; }
.ho-card.is-ask { background: #ffd60a; }
.ho-card h3 { font: 600 18px/24px "Instrument Sans", sans-serif; letter-spacing: -0.015em; }
.ho-card ul, .ho-card ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; color: #5b6472; }
.ho-card.is-ask ol { color: #0e1116; }
.ho-card p { color: #5b6472; }
.ho-card code, .ho-code { font: 500 12.5px/18px "Atkinson Hyperlegible Mono", monospace; background: #f3f5f8; padding: 1px 5px; border-radius: 5px; color: #0e1116; }
.ho-scroll { overflow-x: auto; margin: 0 -22px -22px; border-top: 1px solid #e4e8ee; }
.ho-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.ho-table th, .ho-table td { padding: 9px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid #e4e8ee; }
.ho-table th { font-size: 13px; color: #5b6472; font-weight: 600; background: #fafbfc; }
.ho-table tr:last-child td { border-bottom: 0; }
pre.ho-pre { margin: 0; padding: 16px 18px; border-radius: 14px; background: #0e1116; color: #dfe6f3; font: 400 12.5px/19px "Atkinson Hyperlegible Mono", monospace; overflow-x: auto; }

/* Device */
.dv { position: relative; flex: none; width: 338px; height: 690px; padding: 9px; border-radius: 50px; background: #0b0d10; box-shadow: 0 0 0 1.5px #2a2e35 inset, 0 30px 60px -20px rgba(14, 17, 22, 0.45), 0 12px 24px -12px rgba(14, 17, 22, 0.3); }
.dv--sm { width: 270px; height: 552px; padding: 0; background: none; box-shadow: none; }
.dv--sm .dv__fit { width: 338px; height: 690px; padding: 9px; border-radius: 50px; background: #0b0d10; transform: scale(0.8); transform-origin: 0 0; box-shadow: 0 0 0 1.5px #2a2e35 inset, 0 24px 40px -18px rgba(14, 17, 22, 0.4); }
.dv__s { position: relative; width: 100%; height: 100%; border-radius: 41px; overflow: hidden; display: flex; flex-direction: column; }
.dv__isl { position: absolute; top: 19px; left: 50%; width: 86px; height: 25px; margin-left: -43px; border-radius: 14px; background: #0b0d10; z-index: 9; }
.dv__bar { position: absolute; z-index: 8; inset: 0 0 auto 0; height: 48px; padding: 6px 28px 0; display: flex; align-items: center; justify-content: space-between; font: 600 14px/1 "Atkinson Hyperlegible Mono", monospace; color: #0e1116; pointer-events: none; }
.dv__bar span { display: inline-flex; gap: 5px; align-items: center; }
.dv__home { position: absolute; z-index: 9; bottom: 7px; left: 50%; width: 112px; height: 5px; margin-left: -56px; border-radius: 3px; background: #0e1116; pointer-events: none; }
.dv__in { flex: 1 1 auto; min-height: 0; display: flex; }
.dv__in > .si-screen { padding-top: 48px; }

@media (max-width: 900px) {
  .ho-intro, .ho-work, .ho-spec { grid-template-columns: 1fr; }
  .ho-intro h1 { font-size: 32px; line-height: 36px; }
  .ho-panel { padding: 22px 14px; border-radius: 22px; }
  .ho-work { justify-items: center; }
}

/* Static frames show the resting state: no entrance motion */
.ho-state .si-rise, .ho-state .si-pin--error { animation: none; }

/* Mock system dialogs. Drawn by iOS or Android, not by SwipeIn; shown so the flow reads true. */
.os { position: absolute; inset: 0; z-index: 7; background: rgba(0, 0, 0, 0.42); display: flex; align-items: center; justify-content: center; font-family: -apple-system, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif; }
.os-ios { width: 270px; border-radius: 14px; background: rgba(246, 246, 248, 0.97); text-align: center; overflow: hidden; }
.os-ios div { padding: 19px 16px 15px; display: flex; flex-direction: column; gap: 4px; }
.os-ios b { font-size: 17px; line-height: 22px; font-weight: 600; color: #000; }
.os-ios p { margin: 0; font-size: 13px; line-height: 17px; color: #000; }
.os-ios button { display: block; width: 100%; height: 44px; border: 0; border-top: 0.5px solid rgba(60, 60, 67, 0.3); background: none; color: #007aff; font-size: 17px; cursor: pointer; }
.os--android { align-items: flex-end; }
.os-and { width: 100%; margin: 0 10px 14px; border-radius: 28px; background: #f4f1f8; padding: 22px 20px 12px; text-align: center; font-family: Roboto, system-ui, sans-serif; display: flex; flex-direction: column; gap: 6px; }
.os-and b { font-size: 17px; line-height: 23px; font-weight: 500; color: #1c1b1f; }
.os-and p { margin: 0 0 6px; font-size: 13px; line-height: 18px; color: #49454f; }
.os-and button { height: 46px; border: 0; border-radius: 6px; background: #e4def0; color: #1c1b1f; font-size: 14px; font-weight: 500; cursor: pointer; }
.os-and button:first-of-type { border-radius: 18px 18px 6px 6px; }
.os-and button:last-of-type { border-radius: 6px 6px 18px 18px; }
.os-tag { position: absolute; top: 58px; left: 50%; transform: translateX(-50%); padding: 3px 10px; border-radius: 10px; background: rgba(0, 0, 0, 0.55); color: #fff; font: 600 11px/16px "Atkinson Hyperlegible Next", sans-serif; white-space: nowrap; }
.dv__bar--light { color: #fff; }
/* Mock system keyboard */
.os-kbd { flex: none; height: 232px; background: #d3d7de; display: grid; place-items: center; color: #5b6472; font: 600 13px/1 "Atkinson Hyperlegible Next", sans-serif; position: relative; z-index: 6; }

/* Browser frame for the web app. The app is designed at 1280 x 800 and scaled to fit by handoff-web.js. */
.bw { border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px #d5dae2, 0 30px 60px -24px rgba(14, 17, 22, 0.35); }
.bw__bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: #e9ecf1; }
.bw__bar i { width: 11px; height: 11px; border-radius: 50%; background: #c9cfd8; }
.bw__url { margin-left: 12px; flex: 1; max-width: 420px; height: 24px; padding: 0 12px; border-radius: 12px; background: #fff; color: #5b6472; font: 500 12px/24px "Atkinson Hyperlegible Mono", monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bw__fit { position: relative; overflow: hidden; }
.bw__view { width: 1280px; height: 800px; transform-origin: 0 0; }
.bw--sm .bw__bar { height: 22px; gap: 4px; padding: 0 9px; }
.bw--sm .bw__bar i { width: 6px; height: 6px; }
.bw--sm .bw__url { display: none; }
.ho-wstates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 22px; }
.ho-wstate { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ho-wstate figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 18px; color: #5b6472; }
.ho-wstate figcaption b { font-size: 15px; line-height: 20px; color: #0e1116; font-weight: 600; }
.ho-wstate figcaption button { align-self: flex-start; margin-top: 4px; height: 30px; padding: 0 12px; border: 0; border-radius: 15px; background: #fff; box-shadow: inset 0 0 0 1.5px #cfd5de; font: 600 13px/1 "Atkinson Hyperlegible Next", sans-serif; cursor: pointer; }
.ho-webnotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 900px) { .ho-wstates, .ho-webnotes { grid-template-columns: 1fr; } }
