/* "How it works": three steps, each with a small picture of what happens (typing the address, the old site wiping to
   the new one, the new site live on a phone). And the made-up diner in "Just ask". */
.how2 { background: var(--paper); padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.how2-head { text-align: center; max-width: 900px; margin: 0 auto 2.8rem; }
.how2-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.1; margin: 0 0 .6rem; } .how2-head .lead { margin-inline: auto; }
.how2-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.how2-steps li { position: relative; display: grid; align-content: start; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: .8rem .8rem 1.5rem;
  box-shadow: 0 1px 2px rgba(27, 36, 48, .04), 0 18px 40px rgba(122, 76, 20, .08); }
.how2-steps li:not(:last-child)::after { content: "→"; position: absolute; right: -1.15rem; top: 92px; width: 30px; height: 30px; border-radius: 50%; z-index: 2;
  display: grid; place-items: center; background: var(--clay); color: #fff; font-weight: 700; box-shadow: 0 6px 14px rgba(181, 83, 47, .35); }
.how2-steps h3 { margin: .3rem 1rem .35rem; font-size: 1.3rem; } .how2-steps p { margin: 0 1rem; color: var(--muted); font-size: .97rem; line-height: 1.55; }
.step-n { margin: 1.1rem 1rem 0; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--clay); }
.viz { height: 190px; border-radius: 16px; background: radial-gradient(70% 90% at 50% 0%, rgba(224, 165, 38, .18), transparent 70%), #f6efe3;
  display: grid; place-items: center; overflow: hidden; position: relative; }
.v-box { display: flex; align-items: center; gap: .4rem; width: 86%; background: #fff; border-radius: 12px; padding: .35rem .35rem .35rem .8rem;
  box-shadow: 0 10px 24px rgba(80, 50, 15, .14); border: 1px solid var(--line); font-size: .9rem; color: var(--ink); }
.v-typed { overflow: hidden; white-space: nowrap; width: 0; animation: vType 4s steps(17) infinite; }
.v-caret { width: 2px; height: 1.1em; background: var(--clay); animation: blink 1s steps(1) infinite; }
.v-box b { margin-left: auto; background: var(--clay); color: #fff; font-size: .72rem; padding: .45rem .6rem; border-radius: 8px; white-space: nowrap; }
@keyframes vType { 0% { width: 0; } 45%, 100% { width: 9.6em; } }
.v-win { width: 84%; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 14px 30px rgba(80, 50, 15, .18); }
.v-bar { display: flex; gap: 4px; padding: 6px 8px; background: #f5efe5; } .v-bar i { width: 7px; height: 7px; border-radius: 50%; }
.v-bar i:nth-child(1) { background: #ff5f57; } .v-bar i:nth-child(2) { background: #febc2e; } .v-bar i:nth-child(3) { background: #28c840; }
.v-shot { position: relative; aspect-ratio: 1100 / 650; }
.v-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.v-new { animation: vWipe 5s infinite; }
.v-edge { position: absolute; top: -5%; bottom: -5%; width: 2px; background: #ffe4bd; box-shadow: 0 0 10px 3px rgba(243, 197, 143, .8); transform: skewX(-18deg); animation: vEdge 5s infinite; }
@keyframes vWipe { 0%, 20% { clip-path: polygon(0 0, 0 0, -20% 100%, -20% 100%); } 50%, 92% { clip-path: polygon(0 0, 120% 0, 100% 100%, -20% 100%); } 100% { clip-path: polygon(0 0, 0 0, -20% 100%, -20% 100%); } }
@keyframes vEdge { 0%, 20% { left: -10%; opacity: 0; } 22%, 48% { opacity: 1; } 50%, 100% { left: 110%; opacity: 0; } }
/* step 2: the computer with its phone, both wiping from old to new */
.v-pair { position: relative; width: 84%; padding-right: 9%; }
.v-pair .v-win { width: 100%; }
.v-ph { position: absolute; right: 0; bottom: -10%; width: 23%; border-radius: 10px; padding: 3px; background: #0b1620; box-shadow: 0 10px 22px rgba(0, 0, 0, .3); }
.v-ph .v-shot { aspect-ratio: 320 / 600; border-radius: 7px; overflow: hidden; }
.v-ph .v-new { animation-name: vWipePh; } .v-ph .v-edge { animation-name: vEdgePh; }
@keyframes vWipePh { 0%, 38% { clip-path: polygon(0 0, 0 0, -60% 100%, -60% 100%); } 54%, 92% { clip-path: polygon(0 0, 160% 0, 100% 100%, -60% 100%); } 100% { clip-path: polygon(0 0, 0 0, -60% 100%, -60% 100%); } }
@keyframes vEdgePh { 0%, 38% { left: -30%; opacity: 0; } 40%, 52% { opacity: 1; } 54%, 100% { left: 130%; opacity: 0; } }
/* step 3: live on their own domain, with the lock */
.v-golive { display: grid; gap: .7rem; width: 84%; }
.v-url { display: flex; align-items: center; gap: .45rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .5rem .55rem .5rem .8rem;
  font-size: .86rem; color: var(--ink); box-shadow: 0 10px 24px rgba(80, 50, 15, .12); }
.v-url svg { width: 14px; height: 14px; fill: none; stroke: #2f7d4f; stroke-width: 2.2; stroke-linecap: round; flex: none; }
.v-pill { margin-left: auto; display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 800; color: #166534; background: #dcfce7; padding: .22rem .6rem; border-radius: 999px; }
.v-toast { display: flex; gap: .7rem; align-items: center; background: var(--brand-deep); color: #fff; border-radius: 14px; padding: .7rem .9rem; box-shadow: 0 14px 30px rgba(20, 50, 79, .3);
  animation: vToast 5s infinite; }
.v-toast > b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #3b2a05; flex: none; font-size: .85rem; }
.v-toast strong { display: block; font: 600 .98rem var(--serif); } .v-toast small { color: #b7c3d0; font-size: .74rem; }
@keyframes vToast { 0%, 15% { opacity: 0; transform: translateY(10px); } 25%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(10px); } }
.v-phone { width: 92px; border-radius: 16px; padding: 4px; background: #0b1620; box-shadow: 0 14px 30px rgba(0, 0, 0, .25); }
.v-phone img { display: block; width: 100%; border-radius: 12px; aspect-ratio: 320 / 580; object-fit: cover; object-position: top; }
.v-live { display: grid; grid-template-columns: auto 1fr; column-gap: .45rem; align-items: center; background: #fff; border-radius: 12px; padding: .6rem .8rem;
  box-shadow: 0 10px 24px rgba(80, 50, 15, .14); border: 1px solid var(--line); }
.v-live b { font-size: .95rem; } .v-live small { grid-column: 1 / -1; color: var(--muted); font-size: .72rem; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
@media (max-width: 860px) { .how2-steps { grid-template-columns: 1fr; }
  .how2-steps li:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -1.15rem; transform: translateX(-50%) rotate(90deg); } }
@media (prefers-reduced-motion: reduce) { .v-typed { animation: none; width: 9.6em; } .v-new, .v-edge, .v-caret, .v-toast { animation: none; } }

/* "Just ask": Mabel's Diner, on the real diner photo, in its own colors */
.ai-site .new-nav em { background: #b5532f; }
.ai-hero { min-height: 210px; background: linear-gradient(90deg, rgba(20, 14, 8, .82), rgba(20, 14, 8, .45) 60%, rgba(20, 14, 8, .15)), url(/img/joes-diner.jpg) 70% 60% / cover; }
.ai-kick { margin: 0 0 .3rem; font-size: .68rem !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #f3c58f; opacity: 1 !important; }
