/* The contact block, one way in plus two (Eddie 2026-10-06): the www home and /hk/contact both
 * load it. It brings its own brush-arrow note so it works on pages without the home styles. */

.rm-note { position: relative; color: var(--ink-2); text-align: left; min-height: 76px; }
.rm-note svg { position: absolute; width: 74px; transform: scaleY(-1) rotate(8deg); color: var(--lime); }
.rm-note path { fill: currentColor; }
.rm-note .sc-reveal { fill: none; stroke: #fff; stroke-width: 14; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: rm-cn 0.9s 0.5s forwards; }
.rm-note .sc-head { opacity: 0; animation: rm-cn 0.3s 1.35s forwards; }
@keyframes rm-cn { to { stroke-dashoffset: 0; opacity: 1; } }
.rm-note b { display: block; width: fit-content; color: var(--lime); font-size: 20px; font-weight: 900; line-height: 1.25; transform: rotate(-3deg); }
.rm-note span { display: block; margin-top: 4px; font-size: 15px; }

/* One way in plus two (Eddie 2026-10-06). Fixes Baby is one big card: four steps on the left, a
   neutral sketch of the chat on the right (not the widget's look) where the quote gets ready, one tap
   sends it on, and a WhatsApp note from 客服 arrives; the step that is playing lights up in time.
   WhatsApp sits small under it, marked 一般唔建議; the phone number is one quiet line. */
.rm { --c: #a585ff; --g: 165, 133, 255; margin-top: 26px; display: grid; gap: 26px; padding: 22px 18px 24px; border-radius: 26px;
  border: 1.5px solid rgba(var(--g), 0.55); background: linear-gradient(160deg, rgba(var(--g), 0.16), var(--glass) 60%);
  box-shadow: 0 30px 80px -40px rgba(var(--g), 0.9); }
.rt-tag { padding: 2px 11px; border-radius: 99px; font-size: 13px; font-weight: 900; color: #140b2c; background: var(--c); }
.rm-kick { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--ink-3); }
.rm h3 { margin-top: 12px; display: flex; align-items: center; gap: 12px; font-size: clamp(26px, 7vw, 34px); line-height: 1.2; font-weight: 900; }
.rm h3 img { flex: none; width: 56px; height: 56px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(var(--g), 0.5); }
.rm-steps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 4px; position: relative; }
.rm-steps::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; border-radius: 2px; background: rgba(var(--g), 0.35); }
.rm-steps li { position: relative; display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; padding: 8px 10px 8px 0; border-radius: 14px; animation: rm-on 10s infinite; }
.rm-steps li:nth-child(2) { animation-delay: 2.5s; }
.rm-steps li:nth-child(3) { animation-delay: 5s; }
.rm-steps li:nth-child(4) { animation-delay: 7.5s; }
.rm-steps i { grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 800 15px/1 var(--mono); font-style: normal;
  color: var(--c); border: 1.5px solid rgba(var(--g), 0.8); background: linear-gradient(rgba(var(--g), 0.16), rgba(var(--g), 0.16)), var(--bg-2); transition: background 0.3s; }
.rm-steps b { font-size: 18px; line-height: 1.35; font-weight: 800; }
.rm-steps small { font-size: 14.5px; line-height: 1.45; color: var(--ink-3); }
@keyframes rm-on { 0%, 25.5%, 100% { background: transparent; } 2%, 23% { background: rgba(var(--g), 0.13); } }
.rm-steps li:last-child b { color: #6ee9a0; }
.rm-act { margin-top: 22px; display: flex; flex-wrap: wrap; }
.rm-go { flex: 1 1 100%; min-height: 58px; padding: 12px 26px; border: 0; border-radius: 99px; font: 900 19px/1.2 var(--sans); color: #08130c; background: var(--cta);
  box-shadow: var(--cta-glow); cursor: pointer; transition: transform 0.2s var(--ease); }
.rm-go:hover { transform: translateY(-2px); }
/* The note always wraps under the button, so the arrow points up into it at every width (Eddie 2026-10-07:
   beside the button on desktop it pointed at empty space). */
.rm-note { order: 2; flex: 1 1 100%; margin: 12px 0 0; max-width: none; padding: 34px 0 0 112px; }
.rm-note svg { left: 34px; top: -6px; }

/* The sketch: plain dark panels and lines, no app chrome, so it never reads as the real chat. */
.rm-demo { position: relative; padding: 16px 14px; border-radius: 20px; border: 1px solid var(--line); background: rgba(4, 8, 16, 0.55); overflow: hidden; }
.rd-chat { display: grid; gap: 10px; }
.rd-chat p { margin: 0; font-size: 15px; line-height: 1.45; }
.rd-me { justify-self: end; max-width: 80%; padding: 9px 13px; border-radius: 16px 16px 4px 16px; background: rgba(255, 255, 255, 0.1); animation: rd-in 10s infinite; }
.rd-baby { display: flex; align-items: flex-end; gap: 8px; max-width: 85%; animation: rd-in 10s 0.8s infinite; }
.rd-baby img { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; }
.rd-baby span { padding: 9px 13px; border-radius: 16px 16px 16px 4px; border: 1px solid rgba(var(--g), 0.35); background: rgba(var(--g), 0.1); }
.rd-quote { margin-left: 36px; padding: 14px; border-radius: 16px; border: 1px solid rgba(var(--g), 0.5); background: rgba(var(--g), 0.08); display: grid; gap: 8px; animation: rd-in 10s 2.5s infinite; }
.rd-q-hd { font-weight: 900; }
.rd-q-hd em { font-style: normal; color: #6ee9a0; }
.rd-quote i { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.14); }
.rd-quote i.s { width: 55%; }
.rd-btn { margin-top: 4px; white-space: nowrap; justify-self: start; padding: 8px 16px; border-radius: 99px; font-size: 14.5px; font-weight: 900; color: #08130c; background: var(--cta); animation: rd-tap 10s infinite; }
.rd-wa { margin-top: 12px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px;
  background: #142a1f; border: 1px solid rgba(37, 211, 102, 0.45); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); animation: rd-drop 10s infinite; }
.rd-wa svg { flex: none; width: 26px; height: 26px; fill: none; stroke: #25d366; stroke-width: 2; stroke-linejoin: round; }
.rd-wa p { margin: 0; display: grid; font-size: 13.5px; line-height: 1.4; }
.rd-wa b { font-size: 12.5px; color: #8fe7b2; }
@keyframes rd-in { 0% { opacity: 0; transform: translateY(8px); } 4%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes rd-tap { 0%, 52% { transform: none; box-shadow: none; } 54% { transform: scale(0.92); box-shadow: 0 0 0 8px rgba(200, 255, 90, 0.25); } 57%, 100% { transform: none; box-shadow: none; } }
@keyframes rd-drop { 0%, 72% { opacity: 0; transform: translateY(24px); } 76%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }

.alt { margin-top: 26px; padding: 18px; border-radius: 20px; border: 1px dashed var(--line); }
.alt-hd { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; color: var(--ink-2); }
.alt-hd span { padding: 1px 9px; border-radius: 99px; font-size: 12.5px; font-weight: 700; color: var(--ink-3); border: 1px solid var(--line); }
.alt-why { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: var(--ink-3); }
.alt-wa { margin-top: 14px; display: grid; grid-template-columns: 24px 1fr; column-gap: 12px; row-gap: 10px; align-items: start; }
.alt-wa svg { width: 22px; height: 22px; margin-top: 2px; fill: none; stroke: #25d366; stroke-width: 2; stroke-linejoin: round; opacity: 0.8; }
.alt-wa p { margin: 0; display: grid; }
.alt-wa b { font-size: 16px; }
.alt-wa p span { font-size: 14.5px; line-height: 1.55; color: var(--ink-3); }
.alt-wa a { grid-column: 2; justify-self: start; padding: 7px 16px; border-radius: 99px; border: 1px solid rgba(37, 211, 102, 0.45); font-size: 15px; font-weight: 800; color: var(--ink-2); text-decoration: none; }
.alt-wa a:hover { border-color: #25d366; color: var(--ink); }
.alt-tel { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: rgba(135, 149, 170, 0.72); }
.alt-tel a { color: inherit; text-decoration: underline; text-decoration-color: rgba(135, 149, 170, 0.4); text-underline-offset: 3px; }

/* Wide enough for two columns (landscape phones, iPad portrait up): steps left, the sketch right. */
@media (min-width: 700px) {
  .rm { grid-template-columns: 1.05fr 0.95fr; gap: clamp(20px, 3vw, 40px); align-items: center; padding: clamp(24px, 3vw, 36px); }
  .rm-go { flex: 0 0 auto; }
  .rm-demo { padding: 22px 20px; }
}
@media (min-width: 700px) and (max-width: 1099px) {
  .rm-go { flex: 1 1 100%; }
}
@media (min-width: 900px) {
  .alt { display: grid; grid-template-columns: 1fr 1.25fr; column-gap: 36px; align-items: start; padding: 20px 24px; }
  .alt-why { grid-column: 1; }
  .alt-wa { grid-column: 2; grid-row: 1 / 3; margin-top: 0; grid-template-columns: 24px 1fr auto; }
  .alt-wa a { grid-column: 3; grid-row: 1; }
  .alt-tel { grid-column: 1 / -1; }
}
/* Reduced motion: the sketch shows its finished state instead of ending on a faded-out frame. */
@media (prefers-reduced-motion: reduce) {
  .rm-steps li, .rm-demo *, .rm-note * { animation: none !important; }
  .rm-note .sc-reveal { stroke-dashoffset: 0; }
  .rm-note .sc-head { opacity: 1; }
}
