/* MyGenie Care — On-Call Repairs page (care-on-call.html). Loaded after care.css. */

/* Hero note under the button */
.oc-note {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  font-size: 14px; color: #d1fae5; padding: 7px 14px; border-radius: 999px;
  background: rgba(16,185,129,0.12); border: 1px solid rgba(52,211,153,0.3);
}
.oc-note svg { width: 14px; height: 14px; color: var(--care-light); flex-shrink: 0; }
.oc-note + .hero-note { margin-top: 14px; }

/* ── Hero: WhatsApp-style chat ── */
.oc-chat {
  max-width: 420px; width: 100%; margin: 0 auto; border-radius: 20px; overflow: hidden;
  background: #0b141a; border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 30px 60px rgba(0,0,0,0.45);
}
.oc-chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #1f2c34; }
.oc-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--care); color: #fff;
  display: grid; place-items: center; font-family: "Oswald", sans-serif; font-size: 14px; letter-spacing: 0.04em;
}
.oc-who { flex: 1; line-height: 1.25; }
.oc-who b { display: block; font-weight: 600; font-size: 15px; color: #e9edef; }
.oc-who small { font-size: 12px; color: #8696a0; }
.oc-sample { font-size: 11px; padding: 3px 9px; border-radius: 999px; color: #8696a0; border: 1px solid rgba(134,150,160,0.35); }
.oc-chat-body {
  padding: 16px 14px 18px; display: flex; flex-direction: column; gap: 8px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.025) 0 2px, transparent 3px) 0 0 / 28px 28px,
    radial-gradient(circle at 70% 60%, rgba(255,255,255,0.02) 0 1.5px, transparent 2.5px) 0 0 / 22px 22px,
    #0b141a;
}
.oc-b {
  position: relative; max-width: 86%; padding: 7px 10px 18px; border-radius: 9px;
  font-size: 13px; line-height: 1.45; color: #e9edef;
}
.oc-b p { margin: 0; }
.oc-b.out { align-self: flex-end; background: #005c4b; border-top-right-radius: 2px; }
.oc-b.in { align-self: flex-start; background: #1f2c34; border-top-left-radius: 2px; }
.oc-b .tm {
  position: absolute; right: 8px; bottom: 4px; font-size: 10px; color: rgba(233,237,239,0.6);
  display: inline-flex; align-items: center; gap: 3px;
}
.oc-b .ticks { width: 14px; height: 9px; display: inline-block; position: relative; }
.oc-b .ticks::before, .oc-b .ticks::after {
  content: ""; position: absolute; top: 0; width: 4px; height: 7px;
  border-right: 1.5px solid #53bdeb; border-bottom: 1.5px solid #53bdeb; transform: rotate(40deg);
}
.oc-b .ticks::before { left: 2px; }
.oc-b .ticks::after { left: 6px; }
.oc-photo { padding: 4px 4px 4px; }
.oc-photo .img {
  display: grid; place-items: center; width: 190px; height: 112px; border-radius: 6px;
  background: linear-gradient(160deg, #3f3f46 0%, #1c1917 100%); color: #fca5a5;
}
.oc-photo .img svg { width: 40px; height: 40px; }
.oc-photo .tm { bottom: 8px; right: 10px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.6); }
.oc-cost {
  margin-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 10px; border-radius: 7px; background: rgba(0,0,0,0.2); border-left: 3px solid var(--care-light);
  font-size: 12.5px; color: #d1d7db;
}
.oc-cost em { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--care); color: #fff; }
.oc-ba { margin-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.oc-ba span {
  height: 70px; border-radius: 6px; display: flex; align-items: flex-end; padding: 5px 7px;
  font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase;
}
.oc-ba .b { background: linear-gradient(160deg, #3f3f46, #18181b); color: #fca5a5; }
.oc-ba .a { background: linear-gradient(160deg, #065f46, #022c22); color: #a7f3d0; }
.oc-day { align-self: center; margin: 4px 0; }
.oc-day span { font-size: 11px; color: #8696a0; background: #182229; padding: 4px 10px; border-radius: 7px; }

/* the one orchestrated moment: bubbles arrive in order, once */
@keyframes ocIn { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
.oc-chat.play .oc-b, .oc-chat.play .oc-day {
  opacity: 0; animation: ocIn 0.45s ease-out forwards;
  animation-delay: calc(0.9s + var(--i) * 0.75s);
}
.oc-chat.play .oc-day { animation-delay: calc(0.6s + var(--i) * 0.75s); }

/* ── What we handle ── */
.oc-handle { list-style: none; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .oc-handle { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .oc-handle { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.oc-handle li {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 24px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.oc-handle li:hover { border-color: #6ee7b7; box-shadow: 0 16px 40px rgba(16,185,129,0.08); }
.oc-handle .care-icon { margin-bottom: 16px; }
.oc-handle p { font-size: 16px; color: #241c40; line-height: 1.5; }
@media (max-width: 639px) {
  .oc-handle li { display: flex; gap: 16px; align-items: center; padding: 18px; }
  .oc-handle .care-icon { margin-bottom: 0; flex-shrink: 0; }
  .oc-handle p { font-size: 15px; }
}

/* ── How it works ── */
.oc-steps .step-num { box-shadow: 0 0 0 6px #f3fdf8; }

/* ── Pricing ── */
.oc-pricing .title { line-height: 1.2; }
.oc-flow { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; margin-top: 32px; }
.oc-flow li { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: #334155; font-weight: 500; }
.oc-flow li + li::before {
  content: ""; width: 34px; height: 2px; margin: 0 14px;
  background: repeating-linear-gradient(90deg, #a7f3d0 0 6px, transparent 6px 10px);
}
.oc-flow .ic { width: 38px; height: 38px; border-radius: 50%; background: var(--care-tint); display: grid; place-items: center; }
.oc-flow .ic svg { width: 18px; height: 18px; color: var(--care-strong); }
.oc-amc {
  margin-top: 36px; display: flex; align-items: center; gap: 16px; padding: 20px 22px;
  border-radius: 14px; border: 1px solid #d1fae5; background: linear-gradient(90deg, #f0fdf4, #fff);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.oc-amc:hover { border-color: #6ee7b7; box-shadow: 0 12px 30px rgba(16,185,129,0.1); }
.oc-amc:focus-visible, .oc-out-link:focus-visible { outline: 2px solid var(--care); outline-offset: 3px; }
.oc-amc .care-icon { margin: 0; flex-shrink: 0; }
.oc-amc .t { flex: 1; font-size: 16px; color: var(--ink); font-weight: 500; line-height: 1.4; }
.oc-amc .t small { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--care-strong); }
.oc-amc .arr { width: 18px; height: 18px; color: var(--care-strong); flex-shrink: 0; transition: transform 0.2s; }
.oc-amc:hover .arr { transform: translateX(3px); }

.oc-out {
  margin-top: 40px; position: relative; overflow: hidden; border-radius: 18px; padding: 36px;
  background: radial-gradient(110% 120% at 100% 0%, #065f46 0%, #022c22 50%, #0d0a1c 100%);
  color: #d1fae5; border: 1px solid #065f46;
}
@media (min-width: 1024px) { .oc-out { margin-top: 0; } }
.oc-out::after { /* faint distance rings */
  content: ""; position: absolute; right: -90px; top: -90px; width: 260px; height: 260px; border-radius: 50%;
  border: 1px dashed rgba(52,211,153,0.25); box-shadow: 0 0 0 40px rgba(52,211,153,0.03), 0 0 0 80px rgba(52,211,153,0.02);
  pointer-events: none;
}
.oc-out-ic { width: 48px; height: 48px; border-radius: 12px; background: rgba(16,185,129,0.15); display: grid; place-items: center; margin-bottom: 20px; }
.oc-out-ic svg { width: 24px; height: 24px; color: var(--care-light); }
.oc-out h3 { font-family: "Oswald", sans-serif; font-weight: 400; font-size: 1.9rem; line-height: 1.2; color: #fff; }
.oc-out p { margin-top: 12px; font-size: 15px; color: #a7c4b8; line-height: 1.65; max-width: 460px; }
.oc-hubs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.oc-hubs span {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); font-size: 13px; color: #e2e8f0;
}
.oc-hubs i { width: 7px; height: 7px; border-radius: 50%; background: var(--care-light); box-shadow: 0 0 0 3px rgba(52,211,153,0.2); }
.oc-out-link {
  display: inline-block; margin-top: 24px; font-size: 14px; font-weight: 600; color: var(--care-light);
  border-bottom: 1px solid rgba(52,211,153,0.45); padding-bottom: 2px;
}
.oc-out-link:hover { color: #fff; border-color: #fff; }

@media (max-width: 639px) {
  .oc-out { padding: 28px 22px; }
  .oc-out h3 { font-size: 1.6rem; }
  .oc-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .oc-flow li + li::before { display: none; }
  .oc-flow li { flex-direction: column; text-align: center; font-size: 13px; gap: 8px; padding: 14px 6px; border-radius: 12px; background: #f8fafc; }
  .oc-chat-body { padding: 14px 10px 16px; }
  .oc-b { max-width: 92%; }
}
@media (prefers-reduced-motion: reduce) {
  .oc-chat.play .oc-b, .oc-chat.play .oc-day { animation: none; opacity: 1; }
}
