/* How-to guides: animated pretend screens. Everything inside .screen is a drawing of the app or Android, not the real thing. */
.guides-nav { display: flex; flex-wrap: wrap; gap: .5rem; }
.guides-nav a { border: 2px solid var(--line); border-radius: 999px; padding: .35rem .9rem; font-weight: 700; text-decoration: none; }
.guide-sec { display: grid; gap: .75rem; scroll-margin-top: 1rem; }
.guide { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.5rem 2rem; align-items: start; }
@media (max-width: 760px) { .guide { grid-template-columns: 1fr; justify-items: center; } .g-side { width: 100%; } }

.stage { position: relative; padding: 10px; display: grid; place-items: center; min-height: 560px; }
.device { position: relative; background: #1b1f27; border-radius: 34px; padding: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.18); transition: transform .9s ease, width .9s ease, height .9s ease; }
.device.phone { width: 276px; height: 560px; }
.device.tablet { width: 330px; height: 440px; border-radius: 26px; }
.device.tablet.pose-land { transform: rotate(-90deg); }
.device.tablet.pose-up { width: 440px; height: 330px; transform: perspective(900px) rotateX(10deg); }
@media (max-width: 500px) { .device.tablet.pose-up { width: 340px; height: 260px; } .stage { min-height: 470px; } }
.screen {
  position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 24px; background: #f6f7fb; color: #1d2330;
  font: 12px/1.3 "Atkinson Hyperlegible", system-ui, sans-serif; animation: g-in .35s ease;
}
.tablet .screen { border-radius: 16px; }
@keyframes g-in { from { opacity: .4; } to { opacity: 1; } }

.finger { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  background: rgba(31,111,178,.35); border: 3px solid rgba(31,111,178,.9); opacity: 0; pointer-events: none; transition: left .7s ease, top .7s ease, opacity .3s; z-index: 3; }
.finger.show { opacity: 1; }
.finger.still { transition: none; }
.finger.tap { animation: g-tap .5s ease; }
.finger.hold { animation: g-hold 1.4s ease; }
@keyframes g-tap { 50% { transform: scale(.7); background: rgba(31,111,178,.7); } }
@keyframes g-hold { 15% { transform: scale(.7); } 85% { transform: scale(.7); box-shadow: 0 0 0 14px rgba(31,111,178,.25); background: rgba(31,111,178,.7); } }
.screen .hl { outline: 3px solid #f4a64a; outline-offset: 2px; }

.g-cap { font-size: 1.25rem; font-weight: 700; min-height: 3.2em; margin: 0; }
.g-ctl { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .75rem 0; }
.g-ctl button { font: 700 1rem var(--font-display, inherit); border: 2px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 12px; padding: .55rem .9rem; cursor: pointer; min-height: 48px; }
.g-ctl .g-play { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.g-count { color: var(--muted); font-weight: 700; }
.g-list { margin: 0; padding-left: 1.4rem; display: grid; gap: .25rem; }
.g-list button { all: unset; display: block; box-sizing: border-box; min-height: 44px; padding: .55rem 0; cursor: pointer; color: var(--muted); }
.g-list button:focus-visible { outline: 3px solid var(--accent); }
.g-list li.cur button { color: var(--ink); font-weight: 700; }
.g-note { color: var(--muted); max-width: 62ch; }

/* Pretend screens */
.sb { display: flex; justify-content: space-between; padding: 6px 14px 4px; font-size: 10px; color: #555; }
.br-bar { margin: 2px 8px 8px; background: #e7e9ef; border-radius: 999px; padding: 6px 12px; font-size: 11px; color: #333; }
.br-page { padding: 6px 14px; }
.bp-h { font: 700 17px "Lexend", sans-serif; margin: 8px 0 4px; }
.bp-p { margin: 6px 0; color: #555; }
.bp-btn { background: #1f6fb2; color: #fff; font-weight: 700; padding: 10px; border-radius: 10px; margin: 10px 0; text-align: center; }
.dim { position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.dlg { position: absolute; left: 14px; right: 14px; top: 34%; background: #fff; border-radius: 22px; padding: 16px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.dlg-t { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.dlg-p { color: #444; }
.dlg-b { display: flex; justify-content: flex-end; gap: 14px; margin-top: 14px; font-weight: 700; color: #1f6fb2; }
.dlg-b span { padding: 4px 6px; border-radius: 8px; }
.dlg-b .pri { background: #1f6fb2; color: #fff; padding: 6px 12px; border-radius: 999px; }
.dlg .field { margin-top: 8px; }
.toast { position: absolute; left: 10px; right: 10px; bottom: 16px; background: #2b2f38; color: #fff; border-radius: 12px; padding: 12px; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.toast span { color: #8cc4ff; font-weight: 700; }
.as-h { font-size: 17px; padding: 10px 14px; font-weight: 700; }
.as-h span { margin-right: 8px; padding: 2px 6px; border-radius: 8px; }
.as { padding: 0 10px; }
.as-sub { color: #666; padding: 2px 6px 8px; }
.as-app { display: flex; gap: 10px; align-items: center; padding: 10px 6px; font-weight: 700; }
.as-row { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 12px; padding: 11px 12px; margin: 5px 0; }
.dl { font-size: 16px; color: #1f6fb2; }
.sw { width: 34px; height: 20px; border-radius: 999px; background: #c4c7cf; position: relative; }
.sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.sw.on { background: #1f6fb2; } .sw.on::after { left: 17px; }
.app-ic { display: block; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 8px; }
.as-app .app-ic { width: 28px; height: 28px; margin: 0; }
.app-ic.chrome { background: conic-gradient(#db4437 0 33%, #f4b400 0 66%, #0f9d58 0); border-radius: 50%; }
.app-ic.iwtt { background: #1f6fb2 url("favicon.svg") center/100% no-repeat; }
.app-ic.shield { background: #0f9d58; border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; }

.hdr { display: flex; align-items: center; gap: 6px; padding: 4px 8px; }
.hdr-t { font-weight: 700; font-size: 15px; flex: 1; }
.cog { width: 30px; height: 30px; border-radius: 50%; background: #e3e6ee; display: grid; place-items: center; font-size: 16px; color: #555; }
.chip-f2f { border: 1.5px solid #1f6fb2; color: #1f6fb2; border-radius: 999px; padding: 4px 8px; font-weight: 700; font-size: 11px; }
.banner { margin: 2px 8px 6px; background: #fff3cd; border: 1px solid #f0d58a; border-radius: 10px; padding: 7px 8px; font-size: 11px; display: grid; gap: 5px; }
.banner span { justify-self: start; background: #1f6fb2; color: #fff; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.sent { display: flex; gap: 6px; align-items: center; margin: 2px 8px 6px; background: #fff; border-radius: 10px; padding: 5px 6px; min-height: 30px; border: 1px solid #e0e3ea; }
.sent-w { flex: 1; } .sent-w b { background: #e8f1fb; border-radius: 6px; padding: 2px 5px; }
.speak-b { background: #1f6fb2; color: #fff; font-weight: 700; border-radius: 8px; padding: 5px 8px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; padding: 0 8px; }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { border-radius: 10px; padding: 4px 2px 3px; text-align: center; border: 2px solid transparent; font-weight: 700; font-size: 11px; }
.tile { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tile img { width: min(70%, 54px); height: auto; aspect-ratio: 1; object-fit: contain; display: block; margin: 0 auto 1px; }
.k-p { background: #fff6c9; } .k-v { background: #dff2da; } .k-d { background: #dbeafb; } .k-s { background: #fde3ea; }
.said { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: #2b2f38; color: #fff; padding: 7px 12px; border-radius: 999px; font-weight: 700; white-space: nowrap; animation: g-in .4s; }

.set-h { display: flex; flex-direction: column; gap: 2px; padding: 4px 12px 6px; }
.set-back { color: #1f6fb2; font-weight: 700; align-self: flex-start; padding: 2px 4px; border-radius: 8px; }
.set-t { font: 700 18px "Lexend", sans-serif; }
.set { padding: 0 10px; display: grid; gap: 8px; }
.sec { background: #fff; border-radius: 14px; padding: 9px 10px; display: grid; gap: 5px; }
.sec-t { font-weight: 700; font-size: 13px; }
.small { color: #666; font-size: 10.5px; margin: 0 12px 4px; }
.sec .small { margin: 0; }
.radio { display: flex; gap: 8px; align-items: center; padding: 3px 4px; border-radius: 8px; }
.radio i { width: 13px; height: 13px; border-radius: 50%; border: 2px solid #777; flex: none; }
.radio.on i { border-color: #1f6fb2; box-shadow: inset 0 0 0 3px #fff; background: #1f6fb2; }
.dim-txt { color: #999; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chipx { border: 1.5px solid #c9cdd6; border-radius: 999px; padding: 3px 8px; font-size: 11px; }
.chipx.on { background: #dbeafb; border-color: #1f6fb2; font-weight: 700; }
.btn-o { justify-self: start; border: 1.5px solid #1f6fb2; color: #1f6fb2; border-radius: 999px; padding: 5px 10px; font-weight: 700; }
.lbl { font-weight: 700; font-size: 11px; margin-top: 4px; }
.field { background: #fff; border: 1.5px solid #c9cdd6; border-radius: 10px; padding: 5px 8px; font-size: 14px; flex: 1; }
.field small { display: block; font-size: 9px; color: #777; }
.field.typing::after { content: "|"; animation: g-blink 1s steps(1) infinite; color: #1f6fb2; }
@keyframes g-blink { 50% { opacity: 0; } }
.ep-top { display: flex; gap: 8px; align-items: center; }
.ep-face { width: 54px; height: 54px; border-radius: 50%; background: #e8f1fb; }
.faces { display: flex; flex-wrap: wrap; gap: 4px; }
.faces span { width: 34px; height: 34px; border-radius: 50%; background: #eef0f5; border: 2px solid transparent; }
.faces span.on { border-color: #1f6fb2; }
.faces img { width: 100%; height: 100%; }
.ep-save { display: flex; justify-content: flex-end; gap: 12px; font-weight: 700; color: #1f6fb2; align-items: center; }
.ep-save .pri { background: #1f6fb2; color: #fff; padding: 6px 14px; border-radius: 999px; }
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 10px; }
.person { background: #fff; border-radius: 12px; padding: 6px 4px; text-align: center; font-weight: 700; font-size: 11px; }
.person img { width: 46px; height: 46px; display: block; margin: 0 auto 2px; }
.person.add b { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 2px; border-radius: 50%; background: #e8f1fb; font-size: 22px; color: #1f6fb2; }
.feel { display: flex; justify-content: center; } .feel img { width: 70px; height: 70px; }

/* Face2Face */
.tab-talk .grid { padding: 0 10px; }
.f2f { display: flex; flex-direction: column; height: 100%; position: relative; }
.pose-up .f2f { flex-direction: row; }
.half { flex: 1; position: relative; padding-top: 4px; overflow: hidden; }
.half + .half { border-top: 3px dashed #c9cdd6; }
.pose-up .half + .half { border-top: 0; border-left: 3px dashed #c9cdd6; }
.half.flip { transform: rotate(180deg); background: #fffaf0; }
.half .grid { gap: 3px; } .half .tile { font-size: 9px; padding: 2px 1px; }
.half .tile img { width: 36px; height: 36px; }
.pose-up .half .tile img { width: 30px; height: 30px; }
.half .sent { margin-bottom: 4px; min-height: 24px; padding: 3px 5px; }
.half .hdr { padding: 0 8px 2px; }
.who { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; border: 1.5px solid #c9cdd6; border-radius: 999px; padding: 1px 8px 1px 2px; flex: 1; max-width: max-content; }
.who img { width: 20px; height: 20px; }
.half .chip-f2f { margin-left: auto; }
.half .said { bottom: 6px; }
.picker { position: absolute; left: 12%; right: 12%; top: 6%; background: #fff; border-radius: 14px; padding: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.25); display: grid; gap: 4px; }
.picker.flip { transform: rotate(180deg); }
.picker span { display: flex; align-items: center; gap: 6px; padding: 3px 6px; border-radius: 8px; font-weight: 700; }
.picker img { width: 24px; height: 24px; }

@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .device { background: #000; box-shadow: 0 0 0 2px #444; } }
.said.up { bottom: auto; top: 42%; }

/* Visitors who ask for less motion: no sliding, turning, tapping or blinking. */
@media (prefers-reduced-motion: reduce) {
  .device, .finger, .screen > *, .said { transition: none !important; animation: none !important; }
  .finger.tap, .finger.hold { animation: none !important; }
  .field.typing::after { animation: none; }
}
