/* Narrative overlay layer: town < phone (10) < site controls. All apparent
   controls inside this illustration are inert, not a disguised live AI form. */
.phone-journey {
  --phone-blue: #3157d5;
  --phone-ink: #20272f;
  --phone-muted: #556176;
  --phone-surface: #fbfcfe;
  position: absolute;
  z-index: 10;
  inset: 0 auto auto 0;
  width: 320px;
  height: 580px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  user-select: none;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--phone-ink);
  color-scheme: light;
}

.phone-journey * { box-sizing: border-box; }
.phone-journey p { margin: 0; }
.phone-journey-hardware {
  position: absolute;
  inset: 0;
  padding: 4px;
  border: 1px solid #8795a5;
  border-radius: 37px;
  background: #283241;
  box-shadow: inset 0 0 0 1px #a6b0bd, 4px 16px 32px #2a466323;
}
.phone-journey-hardware::before,
.phone-journey-hardware::after {
  position: absolute;
  content: "";
  width: 3px;
  height: 40px;
  border-radius: 2px;
  background: #586577;
}
.phone-journey-hardware::before { left: -3px; top: 104px; }
.phone-journey-hardware::after { right: -3px; top: 139px; height: 53px; }
.phone-journey-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 32px;
  background: var(--phone-surface);
}
.phone-journey-speaker {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 10px;
  width: 54px;
  height: 5px;
  border-radius: 8px;
  transform: translateX(-50%);
  background: #283241;
}
.phone-journey-app {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 27px 22px 23px;
  opacity: 0;
  visibility: hidden;
}
.phone-journey-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  min-height: 48px;
  padding-bottom: 9px;
  border-bottom: 1px solid #e7ebf1;
}
.phone-journey-header strong { font-size: 20px; font-weight: 600; letter-spacing: -.025em; }
.phone-journey-header > span { margin-left: auto; color: var(--phone-muted); font-size: 14px; line-height: 1.4; }
.phone-journey-content { flex: 1; min-height: 0; position: relative; }
.phone-journey-welcome,
.phone-journey-conversation,
.phone-journey-search,
.phone-journey-detail { position: absolute; inset: 0; }
.phone-journey [hidden] { display: none !important; }
.phone-journey-welcome { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding-bottom: 34px; }
.phone-journey-welcome p { font-size: 27px; line-height: 1.3; letter-spacing: -.04em; font-weight: 600; }
.phone-journey-conversation { padding-top: 22px; }
.phone-journey-query {
  margin-left: 20px !important;
  padding: 12px 14px;
  border-radius: 16px 16px 4px 16px;
  background: #eaf0ff;
  color: #243a6c;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
}
.phone-journey-answer { margin-top: 21px; }
.phone-journey-answer-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--phone-blue); }
.phone-journey-answer p { font-size: 16px; line-height: 1.6; }
.phone-journey-answer strong { font-weight: 600; }
.phone-journey-result { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 12px; margin-top: 20px; padding-top: 15px; border-top: 1px solid #e0e7f1; }
.phone-journey-result .phone-cafe-art { width: 72px; height: 78px; }
.phone-journey-result > div:last-child { min-width: 0; }
.phone-journey-result strong { display: block; font-size: 16px; line-height: 1.4; font-weight: 600; letter-spacing: -.025em; }
.phone-journey-result span:not(.phone-cafe-art span) { font-size: 14px; line-height: 1.5; }
.phone-journey-result > div > span { display: block; color: var(--phone-muted); }
.phone-journey-result .phone-journey-result-link { margin-top: 5px; color: var(--phone-blue); }
.phone-journey-result-link span { margin-left: 3px; }
.phone-journey-search { padding-top: 22px; }
.phone-journey-search-query { padding: 12px 13px; border: 1px solid #c7d2e2; border-radius: 8px; font-size: 16px; line-height: 1.5; background: #fff; }
.phone-journey-search-result { margin-top: 26px; }
.phone-journey-search-kind { display: block; font-size: 14px; line-height: 1.4; color: var(--phone-muted); }
.phone-journey-search-result > strong { display: block; margin-top: 9px; font-size: 23px; line-height: 1.3; letter-spacing: -.025em; font-weight: 600; color: var(--phone-blue); }
.phone-journey-search-location { display: block; margin-top: 5px; font-size: 14px; line-height: 1.5; color: var(--phone-muted); }
.phone-journey-search-excerpt { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: start; gap: 12px; margin-top: 16px; }
.phone-journey-search-excerpt .phone-cafe-art { width: 72px; height: 78px; }
.phone-journey-search-excerpt p { font-size: 14px; line-height: 1.55; }
.phone-journey-search-link { display: block; margin-top: 17px; font-size: 14px; line-height: 1.5; color: var(--phone-blue); }
.phone-journey-search-link > span { margin-left: 4px; }
.phone-journey-detail { padding-top: 17px; }
.phone-journey-detail > .phone-cafe-art { width: 100%; height: 158px; margin-bottom: 20px; background: #edf3fa; }
.phone-journey-shop-title { display: block; font-size: 27px; line-height: 1.3; letter-spacing: -.045em; font-weight: 600; }
.phone-journey-shop-location { margin-top: 8px !important; color: var(--phone-muted); font-size: 14px; line-height: 1.55; }
.phone-journey-shop-description { margin-top: 20px !important; font-size: 17px; line-height: 1.5; letter-spacing: -.015em; }
.phone-journey-route-label { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; min-height: 44px; border-radius: 8px; padding: 0 16px; background: var(--phone-blue); color: #fff; font-size: 16px; font-weight: 600; }
.phone-journey-route-label > span { font-size: 24px; font-weight: 400; }
.phone-journey-composer { display: flex; flex: none; justify-content: space-between; align-items: center; min-height: 40px; margin-top: 10px; border-radius: 20px; background: #eef1f6; padding: 0 14px; color: var(--phone-muted); font-size: 14px; }
.phone-journey[data-scenario="search"] .phone-journey-composer { display: none; }
.phone-journey-composer > span:last-child { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: var(--phone-blue); color: #fff; font-size: 20px; }
.phone-journey-disclaimer { flex: none; margin-top: 12px !important; color: var(--phone-muted); font-size: 14px; line-height: 1.5; }
.phone-journey-homebar { position: absolute; bottom: 9px; left: 50%; width: 93px; height: 4px; border-radius: 4px; transform: translateX(-50%); background: #283241; }

/* One original miniature storefront motif links the phone result to the town. */
.phone-cafe-art { position: relative; width: 80px; height: 83px; overflow: hidden; border-radius: 6px; background: #edf3fa; }
.phone-cafe-art span { position: absolute; display: block; }
.phone-cafe-ground { left: 12%; right: 6%; bottom: 14%; height: 6%; border-radius: 50%; background: #bdcddd; }
.phone-cafe-wall { width: 56%; height: 59%; left: 15%; top: 24%; background: #fff; border-top: 3px solid #dee5ec; box-shadow: 2px 2px 0 #cbd6e2; }
.phone-cafe-side { left: 71%; top: 21%; width: 17%; height: 62%; background: #dbe5ed; transform: skewY(-20deg); transform-origin: left bottom; }
.phone-cafe-name { top: 6%; left: 0; width: 100%; text-align: center; font-size: 6px; font-weight: 600; letter-spacing: -.04em; color: #3157d5; line-height: 1.2; }
.phone-cafe-awning { left: -4%; top: 26%; width: 108%; height: 19%; background: #3157d5; transform: skewX(-8deg); border-bottom: 2px solid #2343ac; }
.phone-cafe-window { left: 12%; top: 51%; width: 42%; height: 38%; background: #a9c1d6; border: 2px solid #edf3f8; box-shadow: inset 1px 1px 0 #6486a1; }
.phone-cafe-window::after { position: absolute; content: ""; left: 46%; top: 0; width: 1px; height: 100%; background: #edf3f8; }
.phone-cafe-door { right: 10%; top: 51%; width: 26%; height: 49%; background: #718ca9; border: 2px solid #edf3f8; border-bottom: 0; }
.phone-cafe-door::after { position: absolute; content: ""; right: 2px; top: 53%; width: 2px; height: 3px; background: #e7bd6c; }
.phone-cafe-tree { width: 2%; height: 30%; top: 55%; right: 7%; background: #829293; }
.phone-cafe-tree > span { width: 950%; height: 90%; left: -425%; top: -40%; background: #6a967e; clip-path: polygon(50% 0,92% 20%,100% 73%,57% 100%,9% 70%,0 29%); }
.phone-cafe-pot { left: 9%; bottom: 15%; width: 9%; height: 13%; background: #9bbbaa; clip-path: polygon(0 0,100% 0,80% 100%,20% 100%); }
.phone-journey-detail .phone-cafe-wall { width: 48%; left: 21%; }
.phone-journey-detail .phone-cafe-side { left: 69%; width: 14%; }
.phone-journey-detail .phone-cafe-name { font-size: 12px; }
.phone-journey-detail .phone-cafe-tree { right: 12%; }
.phone-journey-detail .phone-cafe-pot { left: 14%; width: 7%; }

.phone-journey[data-narrow="true"] .phone-journey-app { padding-left: 17px; padding-right: 17px; }
.phone-journey[data-narrow="true"] .phone-journey-query { margin-left: 10px !important; font-size: 14px; padding: 10px 12px; }
.phone-journey[data-narrow="true"] .phone-journey-answer p { font-size: 14px; }
.phone-journey[data-narrow="true"] .phone-journey-result { grid-template-columns: 57px minmax(0,1fr); gap: 9px; }
.phone-journey[data-narrow="true"] .phone-journey-result .phone-cafe-art { width: 57px; height: 69px; }
.phone-journey[data-narrow="true"] .phone-journey-result strong { font-size: 16px; }
.phone-journey[data-narrow="true"] .phone-journey-search-query { font-size: 14px; }
.phone-journey[data-narrow="true"] .phone-journey-search-result > strong { font-size: 21px; }
.phone-journey[data-narrow="true"] .phone-journey-search-excerpt { grid-template-columns: 57px minmax(0,1fr); gap: 10px; }
.phone-journey[data-narrow="true"] .phone-journey-search-excerpt .phone-cafe-art { width: 57px; height: 69px; }
.phone-journey[data-narrow="true"] .phone-journey-detail > .phone-cafe-art { height: 140px; }
.phone-journey[data-narrow="true"] .phone-journey-shop-title { font-size: 24px; }
.phone-journey[data-narrow="true"] .phone-journey-shop-description { font-size: 16px; }
.phone-journey[data-compact="true"] .phone-journey-conversation { padding-top: 14px; }
.phone-journey[data-compact="true"] .phone-journey-query { font-size: 14px; padding-top: 9px; padding-bottom: 9px; }
.phone-journey[data-compact="true"] .phone-journey-answer { margin-top: 14px; }
.phone-journey[data-compact="true"] .phone-journey-answer p { font-size: 14px; line-height: 1.6; }
.phone-journey[data-compact="true"] .phone-journey-answer-label { margin-bottom: 4px; }
.phone-journey[data-compact="true"] .phone-journey-result { margin-top: 12px; padding-top: 10px; }
.phone-journey[data-compact="true"] .phone-journey-search { padding-top: 14px; }
.phone-journey[data-compact="true"] .phone-journey-search-result { margin-top: 19px; }
.phone-journey[data-compact="true"] .phone-journey-search-excerpt { margin-top: 12px; }
.phone-journey[data-compact="true"] .phone-journey-composer { display: none; }
.phone-journey[data-compact="true"] .phone-journey-detail > .phone-cafe-art { height: 112px; margin-bottom: 13px; }
.phone-journey[data-compact="true"] .phone-journey-shop-description { margin-top: 10px !important; font-size: 16px; }
.phone-journey[data-compact="true"] .phone-journey-route-label { margin-top: 13px; }
.phone-journey[data-short="true"] .phone-journey-detail > .phone-cafe-art { height: 94px; }
@media (prefers-reduced-motion: reduce) {
  .phone-journey { will-change: auto; }
}
