/* The chat inside the hero phone (src/data/heroChat.js): the web application
   chat (/start) as it looks on an iPhone, in iPhone points
   (393 x 852) and scaled to the phone's screen by public/hero-chat.js, which
   also plays it. Greyscale, with the features section's bubbles, over St
   Basil's Cathedral engraved like the features' landmarks */
.hero-phone-mock-frame .hero-chat {
  position: relative;
  width: 100%;
  aspect-ratio: 393 / 852;
  overflow: hidden;
  border-radius: calc(var(--phone-screen) * 0.14);
  background: #fafafa;
  isolation: isolate;
}

/* Everything is laid out in iPhone points (393 x 852) and scaled 3x */
.hero-chat-screen {
  position: absolute; left: 0; top: 0; width: 393px; height: 852px;
  transform: scale(var(--hero-chat-scale, 0.7)); transform-origin: 0 0; overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px; line-height: normal; text-align: left;
  font-feature-settings: 'cv11', 'ss03';
  letter-spacing: -0.25px; color: #000;
  -webkit-font-smoothing: antialiased;
}
/* Wallpaper: near white with a faint engraving of a landmark, as in the web
   chat: the Statue of Liberty until a country is picked, then the country's
   own (Italy's Colosseum). public/hero-chat.js fades one into the other */
.hero-chat-screen .wallpaper { position: absolute; inset: 0; background: #fafafa; isolation: isolate; }
.hero-chat-screen .wallpaper .art { position: absolute; left: -40px; right: -40px; top: 100px; height: 470px;
  background: url('/images/chat-art/colosseum.webp') center top / auto 100% no-repeat; mix-blend-mode: multiply; opacity: 0.2; filter: grayscale(1);
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, #000 80%, transparent); }
.hero-chat-screen .wallpaper .art-start { background-image: url('/images/chat-art/statue-of-liberty.webp'); }
/* Status bar */
.hero-chat-screen .status { position: absolute; left: 0; right: 0; top: 0; height: 54px; z-index: 30; }
.hero-chat-screen .status .time { position: absolute; left: 0; width: 132px; top: 17px; text-align: center;
  font-weight: 600; font-size: 17px; letter-spacing: -0.4px; }
.hero-chat-screen .status .icons { position: absolute; right: 30px; top: 20px; display: flex; gap: 6px; align-items: center; }
/* Top bar, as on /start: Home, and the country with how far along */
.hero-chat-screen .header { position: absolute; left: 0; right: 0; top: 54px; height: 52px; z-index: 30; }
.hero-chat-screen .header-fade { position: absolute; left: 0; right: 0; top: 0; height: 120px; z-index: 25;
  background: linear-gradient(to bottom, rgba(250,250,250,0.92) 60%, rgba(250,250,250,0)); }
.hero-chat-screen .glass { background: rgba(255,255,255,0.78); box-shadow: 0 1px 6px rgba(0,0,0,0.06), inset 0 0 0 1px #e4e4e7; }
/* Top left, as in the web chat: the way back to the home page */
.hero-chat-screen .back { position: absolute; left: 14px; top: 10px; height: 32px; display: flex; align-items: center; gap: 5px; font-size: 14.5px; font-weight: 600; color: #111; }
.hero-chat-screen .back .back-chevron { color: #8a8a8e; }
.hero-chat-screen .chip { position: absolute; right: 16px; top: 10px; height: 32px; padding: 0 12px 0 10px; border-radius: 16px;
  display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; }
.hero-chat-screen .chip img { width: 17px; height: 17px; max-width: none; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,0.1); }
.hero-chat-screen .chip small { font-size: 13.5px; font-weight: 500; color: #8a8a8e; }
/* The chip opens the menu, as in the web chat: a chevron at its end. Before
   a country is picked, the menu's dots stand in its place */
.hero-chat-screen .chip .chev { flex: none; margin: 0 -4px 0 -2px; color: #8a8a8e; }
.hero-chat-screen .dots { position: absolute; right: 16px; top: 10px; width: 38px; height: 32px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; color: #111; }
/* How far along: the figures share one place, and the player shows one */
.hero-chat-screen .chip .pct { display: grid; justify-items: end; }
.hero-chat-screen .chip .pct span { grid-area: 1 / 1; display: flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
/* A ring filled that far, with the percent beside it, as in the web chat */
.hero-chat-screen .chip .ring { width: 15px; height: 15px; border-radius: 50%; background: conic-gradient(#111 calc(var(--p) * 1%), #e0e0e4 0);
  -webkit-mask: radial-gradient(circle, transparent 4.5px, #000 5px); mask: radial-gradient(circle, transparent 4.5px, #000 5px); }
/* Chat */
.hero-chat-screen .viewport { position: absolute; left: 0; right: 0; top: 0; height: 452px; overflow: hidden; z-index: 10;
  -webkit-mask-image: linear-gradient(to bottom, transparent 100px, #000 128px); mask-image: linear-gradient(to bottom, transparent 100px, #000 128px); }
.hero-chat-screen .col { position: absolute; left: 0; right: 0; top: 0; padding: 0 8px; }
.hero-chat-screen .msg { display: flex; margin-top: 8px; }
.hero-chat-screen .msg.out { justify-content: flex-end; }
.hero-chat-screen .msg.tight { margin-top: 3px; }
.hero-chat-screen .bubble { position: relative; max-width: 300px; padding: 8px 12px; border-radius: 18px;
  font-size: 16px; line-height: 21px; color: #111; }
.hero-chat-screen .in .bubble { background: #fff; box-shadow: inset 0 0 0 1px #e4e4e7; border-radius: 18px 18px 18px 2px; }
/* Every bot message is one width, the width of the buttons under it */
.hero-chat-screen .in .bubble { width: 300px; box-sizing: border-box; }
.hero-chat-screen .out .bubble { background: #111; color: #fff; border-radius: 18px 18px 2px 18px; }
.hero-chat-screen .meta { float: right; margin: 7px -4px -4px 10px; font-size: 11.5px; line-height: 14px; color: #a1a1aa;
  display: flex; align-items: center; gap: 3px; letter-spacing: 0; }
.hero-chat-screen .out .meta { color: rgba(255,255,255,0.6); }
/* The web chat shows no times: the markup keeps them, unseen */
.hero-chat-screen .msg .meta { display: none; }
.hero-chat-screen .bubble b { font-weight: 600; }
.hero-chat-screen .bubble ul { margin: 2px 0 0; padding-left: 18px; list-style: disc; }
.hero-chat-screen .bubble li { margin: 1px 0; }
.hero-chat-screen .skip { display: flex; align-items: center; gap: 12px; margin: 16px 4px; color: #71717a; font-size: 13px; line-height: 16px; }
.hero-chat-screen .skip::before, .hero-chat-screen .skip::after { content: ''; flex: 1; border-top: 1px dashed #c4c4c9; }
.hero-chat-screen .status-msg .bubble { color: #8e8e93; display: flex; align-items: center; gap: 6px; padding: 8px 14px; }
.hero-chat-screen .status-msg .lines { position: relative; height: 21px; flex: 1; font-size: 15px; }
.hero-chat-screen .status-msg .lines span { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0;
  background: linear-gradient(90deg, #8e8e93 0%, #8e8e93 40%, #d2d2d6 50%, #8e8e93 60%, #8e8e93 100%);
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
/* The text box, as on /start: one rounded field with the send button in it */
.hero-chat-screen .inputbar { position: absolute; left: 0; right: 0; top: 455px; height: 50px; z-index: 22; }
.hero-chat-screen .round { position: absolute; top: 0; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.hero-chat-screen .field-pill { position: absolute; left: 10px; right: 10px; top: 0; height: 50px; border-radius: 25px; display: flex; align-items: center; padding: 0 18px; color: #a1a1aa; font-size: 16.5px;
  background: #fff; box-shadow: 0 6px 20px rgba(0,0,0,0.06), inset 0 0 0 1px #e4e4e7; }
/* The paperclip and the send button are always there, as in the web chat:
   the button stays solid, empty or not */
.hero-chat-screen .field-pill .attach { position: absolute; left: 14px; top: 15px; width: 20px; height: 20px; display: flex; color: #71717a; }
.hero-chat-screen .field-pill .placeholder, .hero-chat-screen .field-pill .typed { position: absolute; left: 44px; right: 56px; white-space: nowrap; overflow: hidden; }
.hero-chat-screen .field-pill .typed { color: #111; }
.hero-chat-screen .field-pill .typed:not(:empty)::after { content: ''; display: inline-block; width: 2px; height: 19px; margin-left: 1px; vertical-align: -3px; background: #111; }
.hero-chat-screen .round.send { right: 15px; top: 5px; width: 40px; height: 40px; background: #111; z-index: 1; }
/* Under the chat: the answers to tap, or the phone's keyboard */
.hero-chat-screen .kb-area { position: absolute; left: 0; right: 0; top: 511px; bottom: 0; z-index: 20; }
.hero-chat-screen .panel { position: absolute; inset: 0; opacity: 0; }
/* Two rows of answers, between the chat and the text box */
.hero-chat-screen .panel.reply { top: -164px; bottom: auto; padding: 0 10px; display: grid; grid-auto-rows: 46px; gap: 7px; align-content: start; }
/* One row of answers, resting on the text box like the lower of two: one
   answer, as wide as the messages above it */
.hero-chat-screen .panel.reply.r1 { top: -111px; left: 8px; right: auto; width: 300px; padding: 0; }
.hero-chat-screen .panel.reply.c2 { grid-template-columns: 1fr 1fr; }
.hero-chat-screen .panel.reply.c3 { grid-template-columns: 1fr 1fr 1fr; }
.hero-chat-screen .key { background: #fff; border-radius: 14px; box-shadow: inset 0 0 0 1px #e4e4e7; display: flex; align-items: center; gap: 9px; padding: 0 13px;
  font-size: 15px; font-weight: 500; color: #111; position: relative; white-space: nowrap; overflow: hidden; }
.hero-chat-screen .key svg { flex: none; color: #52525b; }
.hero-chat-screen .key img { flex: none; width: 22px; height: 16px; max-width: none; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,0.08); }
.hero-chat-screen .panel.ios { background: #d1d1d6; }
.hero-chat-screen .ios .sugg { height: 40px; display: flex; align-items: center; color: #222; font-size: 16px; }
.hero-chat-screen .ios .sugg span { flex: 1; text-align: center; }
.hero-chat-screen .ios .sugg i { width: 1px; height: 22px; background: #b8b8bd; }
.hero-chat-screen .ios .row { display: flex; justify-content: center; gap: 6px; margin-top: 11px; padding: 0 3px; }
.hero-chat-screen .ios .row:first-of-type { margin-top: 4px; }
.hero-chat-screen .ios .k { width: 33px; height: 43px; background: #fff; border-radius: 5px; box-shadow: 0 1px 0 rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: center; font-size: 22.5px; font-weight: 400; color: #000; letter-spacing: 0; }
.hero-chat-screen .ios .k.dark { background: #ababb1; }
.hero-chat-screen .ios .row.ru { gap: 4px; }
.hero-chat-screen .ios .row.ru .k, .hero-chat-screen .ios .row.rus .k:not(.wide) { width: 31.5px; }
.hero-chat-screen .ios .row.rus { gap: 4px; }
.hero-chat-screen .ios .row.rus .k:not(.wide) { width: 29px; }
.hero-chat-screen .ios .gap { width: 7px; }
.hero-chat-screen .ios .k.wide { width: 43px; }
.hero-chat-screen .ios .k.space { flex: 1; max-width: 186px; width: auto; }
.hero-chat-screen .ios .k.ret { width: 88px; }
.hero-chat-screen .ios .k.small { font-size: 16px; }
.hero-chat-screen .ios .bottom { position: absolute; left: 0; right: 0; bottom: 34px; height: 30px; }
.hero-chat-screen .home { position: absolute; left: 50%; bottom: 8px; width: 140px; height: 5px; margin-left: -70px; border-radius: 3px; background: #000; z-index: 40; }
.hero-chat-screen .tapdot { position: absolute; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.18); box-shadow: 0 0 0 2px rgba(255,255,255,0.7); z-index: 50; opacity: 0; pointer-events: none; }
.hero-chat-screen .fader { position: absolute; inset: 0; background: #fafafa; opacity: 0; z-index: 45; }
.hero-chat-screen .status-msg { position: absolute; left: 8px; top: 0; margin: 0; opacity: 0; }
.hero-chat-screen .msg.stack { flex-direction: column; align-items: flex-start; }
.hero-chat-screen .ios .bottom .globe { position: absolute; left: 28px; top: 0; }
.hero-chat-screen .ios .bottom .mic { position: absolute; right: 28px; top: 0; }
.hero-chat-screen [data-hc='kbIos'] { opacity: 1; }
/* The thinking block: three stars twinkling in turn */
.hero-chat-screen .status-msg .stars { position: relative; width: 16px; height: 16px; flex: none; }
.hero-chat-screen .status-msg .stars i { position: absolute; background: #a1a1aa;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: hero-chat-twinkle 1.2s ease-in-out infinite; }
.hero-chat-screen .status-msg .stars i:nth-child(1) { left: 0; top: 3px; width: 11px; height: 11px; }
.hero-chat-screen .status-msg .stars i:nth-child(2) { right: 0; top: 0; width: 7px; height: 7px; animation-delay: 0.4s; }
.hero-chat-screen .status-msg .stars i:nth-child(3) { right: 1px; bottom: 0; width: 5px; height: 5px; animation-delay: 0.8s; }
@keyframes hero-chat-twinkle {
  0%, 100% { transform: scale(0.55); opacity: 0.45; }
  50% { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-chat-screen .status-msg .stars i { animation: none; }
}

/* The specialist's review, as one bot message: who reviewed, what was
   checked, and the verdict */
.hero-chat-screen .review { padding: 12px 12px 8px; }
.hero-chat-screen .rv-head { display: flex; align-items: center; gap: 9px; padding-bottom: 10px; border-bottom: 1px solid #efeff1; }
.hero-chat-screen .rv-avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #111; color: #fff; font-size: 15px; font-weight: 700; line-height: 34px; text-align: center; }
.hero-chat-screen .rv-who { display: flex; flex-direction: column; line-height: 17px; }
.hero-chat-screen .rv-who b { font-size: 15px; }
.hero-chat-screen .rv-who small { font-size: 12.5px; color: #8a8a8e; }
.hero-chat-screen .rv-badge { margin-left: auto; display: flex; align-items: center; gap: 3px; padding: 0 9px; border-radius: 11px; background: #111; color: #fff; font-size: 12px; font-weight: 600; line-height: 22px; }
.hero-chat-screen .rv-badge svg { flex: none; width: 14px; height: 14px; margin-left: -3px; }
.hero-chat-screen .bubble .rv-list { margin: 9px 0 9px; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14.5px; line-height: 19px; }
.hero-chat-screen .rv-list li { display: flex; align-items: center; gap: 8px; }
/* A tick in a soft grey disc, like the pricing lists' */
.hero-chat-screen .rv-list li::before, .hero-chat-screen .ck { content: ''; flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: #ececef url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5.4 9.5l2.4 2.4 4.8-5.3' fill='none' stroke='%23111' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
/* The same tick before a sentence, and a list of them under a title */
.hero-chat-screen .ck { display: inline-block; vertical-align: -3px; margin-right: 6px; }
.hero-chat-screen .bubble .ck-list { margin: 7px 0 2px; font-size: 15px; line-height: 20px; }
.hero-chat-screen .rv-text { padding-top: 9px; border-top: 1px solid #efeff1; }
/* The visa package: the verdict, each document with a download button, and
   the booked appointment */
.hero-chat-screen .rv-intro { padding: 9px 0 3px; }
.hero-chat-screen .bubble .files { margin: 0; padding: 0; list-style: none; }
.hero-chat-screen .files li { display: flex; align-items: center; gap: 9px; padding: 3px 0; font-size: 14.5px; line-height: 19px; }
.hero-chat-screen .files li > svg { flex: none; color: #111; }
.hero-chat-screen .files .dl { margin-left: auto; display: flex; width: 26px; height: 26px; border-radius: 50%; background: #f1f1f3; align-items: center; justify-content: center; }
.hero-chat-screen .files .dl svg { width: 14px; height: 14px; color: #111; }
.hero-chat-screen .bubble .facts { margin: 6px 0 4px; padding: 0; list-style: none; }
.hero-chat-screen .facts li { display: flex; align-items: center; gap: 9px; margin: 0; padding: 3px 0; font-size: 15px; line-height: 20px; }
.hero-chat-screen .facts li > svg { flex: none; color: #111; }
/* The summary is longer than the demo shows: "Show more" at its foot */
.hero-chat-screen .bubble .more { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 6px 0 0;
  color: #8e8e93; font-size: 13.5px; line-height: 18px; }
/* A second line under a fact: the office's street address */
.hero-chat-screen .facts li small { display: block; font-size: 12.5px; line-height: 17px; color: #71717a; white-space: nowrap; }
.hero-chat-screen .facts li:has(small) { align-items: flex-start; }
.hero-chat-screen .facts li:has(small) > svg { margin-top: 1px; }
.hero-chat-screen .map { margin: 8px 0 4px; height: 100px; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px #e4e4e7; }
.hero-chat-screen .map svg { display: block; width: 100%; height: 100%; }
/* Long messages keep their time clear of the bubble's edge */
.hero-chat-screen .review { padding-bottom: 10px; }
.hero-chat-screen .review .meta, .hero-chat-screen .rich .meta { margin: 6px 0 0 10px; }

/* The side phones' still chats (sideChatHtml): the messages rest above the input */
.hero-chat-screen .col.still { top: auto; bottom: 6px; }
.hero-chat-screen .kb-area.still .panel.ios { opacity: 1; }
.hero-chat-screen .kb-area.still .ios .row:first-of-type { margin-top: 8px; }
/* A document the applicant sends: icon, name and size */
.hero-chat-screen .bubble.file-out { display: flex; align-items: center; gap: 10px; }
.hero-chat-screen .file-out > svg { flex: none; width: 26px; height: 26px; }
.hero-chat-screen .file-out > span:not(.meta) { display: flex; flex-direction: column; line-height: 19px; }
.hero-chat-screen .file-out small { font-size: 12.5px; color: rgba(255,255,255,0.6); }
.hero-chat-screen .file-out .meta { align-self: flex-end; margin: 0 -4px -4px 4px; }
/* The passport photo the applicant sends */
.hero-chat-screen .bubble.pass { padding: 3px; }
.hero-chat-screen .pass-page { position: relative; width: 236px; height: 138px; border-radius: 15px 15px 2px 15px; overflow: hidden; background: #e9e9ec; }
.hero-chat-screen .pass-page i { position: absolute; left: 84px; height: 7px; border-radius: 4px; background: #c9c9cf; }
.hero-chat-screen .pass-page .pass-face { left: 16px; top: 16px; width: 54px; height: 68px; border-radius: 6px; background: #cdcdd3; }
.hero-chat-screen .pass-page span { position: absolute; left: 16px; right: 10px; bottom: 10px; font: 700 8.5px/12px ui-monospace, Menlo, monospace; letter-spacing: 0.6px; color: #8e8e96; white-space: nowrap; overflow: hidden; }
