/* MyGenie Care — Care Portal page (care-portal.html). Builds on style.css + care.css. */

.portal-accent { color: #34d399; }

/* ── Portal preview (HTML/CSS mock, sample data) ── */
.pm { position: relative; max-width: 540px; width: 100%; margin: 0 auto; padding-bottom: 128px; }
.pm-win {
  background: #120d24; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px; overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
}
.pm-bar {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  background: #111a2e; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.pm-dots { display: flex; gap: 6px; }
.pm-dots i { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.pm-dots i:first-child { background: #f87171; }
.pm-dots i:nth-child(2) { background: #fbbf24; }
.pm-dots i:nth-child(3) { background: #34d399; }
.pm-url {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 6px; background: rgba(13, 10, 28, 0.6);
  font-size: 11.5px; color: #94a3b8; white-space: nowrap; overflow: hidden;
}
.pm-url svg { width: 11px; height: 11px; color: #34d399; flex-shrink: 0; }
.pm-preview {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  padding: 4px 8px; border-radius: 5px; color: #fcd34d; border: 1px solid rgba(252, 211, 77, 0.35);
}
.pm-app { padding: 16px 16px 12px; }
.pm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pm-head b { display: block; font-family: "Oswald", sans-serif; font-weight: 400; font-size: 20px; color: #fff; line-height: 1.2; }
.pm-head small { font-size: 12px; color: #64748b; }
.pm-new {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 7px;
  background: #10b981; color: #022c22; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.pm-new svg { width: 12px; height: 12px; }
.pm-filters { display: flex; gap: 6px; margin: 14px 0 8px; }
.pm-filters span { font-size: 11.5px; color: #94a3b8; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); }
.pm-filters span.on { background: rgba(52, 211, 153, 0.14); color: #6ee7b7; }
.pm-list { list-style: none; }
.pm-list li {
  display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.pm-list li:last-child { border-bottom: 0; }
.pm-list li.sel { background: rgba(180, 139, 255, 0.08); box-shadow: inset 3px 0 0 #b48bff; }
.pm-id { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px; color: #64748b; width: 40px; flex-shrink: 0; }
.pm-t { flex: 1; min-width: 0; font-size: 13.5px; color: #e2e8f0; line-height: 1.35; }
.pm-t small { display: block; font-size: 11.5px; color: #64748b; }
.chip { font-size: 11px; padding: 3px 9px; border-radius: 999px; white-space: nowrap; font-weight: 500; }
.c-raised { background: rgba(148, 163, 184, 0.16); color: #cbd5e1; }
.c-quoted { background: rgba(180, 139, 255, 0.16); color: #cdb4ff; }
.c-appr { background: rgba(167, 139, 250, 0.16); color: #c4b5fd; }
.c-prog { background: rgba(251, 191, 36, 0.15); color: #fcd34d; }
.c-done { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }

.pm-detail {
  position: absolute; left: -36px; bottom: 0; width: 300px;
  background: #fff; color: #17112e; border-radius: 14px; padding: 16px;
  box-shadow: 0 30px 60px rgba(13, 10, 28, 0.5), 0 0 0 1px rgba(23, 17, 46, 0.05);
}
.pm-dtop { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11px; color: #64748b; }
.pm-detail .c-quoted { background: #ebe1ff; color: #1d4ed8; }
.pm-dtitle { font-family: "Oswald", sans-serif; font-size: 19px; margin: 6px 0 12px; color: #17112e; }
.pm-quote {
  display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px;
  background: #f8fafc; border: 1px solid #e2e8f0; font-size: 13px; font-weight: 500; line-height: 1.35;
}
.pm-quote small { display: block; font-size: 11.5px; color: #64748b; font-weight: 400; }
.pm-file {
  width: 34px; height: 34px; border-radius: 8px; background: #ecfdf5; color: #059669; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.pm-file svg { width: 18px; height: 18px; }
.pm-actions { display: flex; gap: 8px; margin-top: 12px; }
.pm-approve {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 12px; border-radius: 8px; background: #059669; color: #fff; font-size: 13px; font-weight: 600;
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.35);
}
.pm-approve svg { width: 14px; height: 14px; }
.pm-ghost {
  padding: 9px 12px; border-radius: 8px; border: 1px solid #e2e8f0; color: #475569; font-size: 12.5px; white-space: nowrap;
}
.pm-cap {
  position: absolute; right: 4px; bottom: 30px; font-size: 11px; color: rgba(255, 255, 255, 0.45); letter-spacing: 0.04em;
}

@media (max-width: 1023px) {
  .pm { padding-bottom: 0; }
  .pm-detail { position: relative; left: auto; bottom: auto; width: auto; max-width: 360px; margin: -20px 12px 0 auto; }
  .pm-cap { position: static; display: block; text-align: right; margin-top: 10px; }
}
@media (max-width: 479px) {
  .pm-id { display: none; }
  .pm-app { padding: 14px 10px 10px; }
  .pm-list li { padding: 9px 8px; gap: 10px; }
  .pm-detail { margin: 12px 0 0; max-width: none; }
  .pm-list li:nth-child(n+5) { display: none; }
}

/* ── How it works: five steps ── */
@media (min-width: 900px) { .steps-5 { grid-template-columns: repeat(5, 1fr); } }
.steps-5 .step p { max-width: 210px; }

/* ── Ticket status pipeline ── */
.pipe {
  list-style: none; position: relative; display: grid; gap: 0;
  max-width: 1080px; margin: 0 auto;
  --track: rgba(255, 255, 255, 0.1);
}
.pipe-step { position: relative; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: center; padding: 14px 0; }
.pipe-step b { font-family: "Oswald", sans-serif; font-weight: 400; font-size: 1.4rem; color: #fff; line-height: 1.2; }
.pipe-step small { grid-column: 2; font-size: 14px; color: #94a3b8; }
.pipe-dot {
  grid-row: span 2; position: relative; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: "Oswald", sans-serif; font-size: 18px;
  background: #10b981; color: #022c22; border: 2px solid #10b981;
  box-shadow: 0 0 0 6px #0b1424;
  transition: background 0.35s, color 0.35s, border-color 0.35s;
}
.pipe-step:last-child .pipe-dot { background: #34d399; border-color: #34d399; box-shadow: 0 0 0 6px #0b1424, 0 0 0 12px rgba(52, 211, 153, 0.15); }
/* Track: vertical on small screens */
.pipe::before, .pipe::after {
  content: ""; position: absolute; left: 21px; top: 36px; bottom: 36px; width: 2px; background: var(--track);
}
.pipe::after { background: linear-gradient(180deg, #10b981, #34d399); transform-origin: top; transform: scaleY(1); transition: transform 2.4s cubic-bezier(.4, 0, .2, 1); }

@media (min-width: 900px) {
  .pipe { grid-template-columns: repeat(5, 1fr); }
  .pipe-step { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 8px; }
  .pipe-step b { margin-top: 20px; }
  .pipe-step small { margin-top: 4px; }
  .pipe::before, .pipe::after { left: 10%; right: 10%; top: 21px; bottom: auto; width: auto; height: 2px; }
  .pipe::after { background: linear-gradient(90deg, #10b981, #34d399); transform-origin: left; transform: scaleX(1); }
}

/* Armed by JS: start empty, fill once when scrolled into view */
.pipe.armed::after { transform: scaleY(0); }
@media (min-width: 900px) { .pipe.armed::after { transform: scaleX(0); } }
.pipe.armed .pipe-dot { background: #17112e; color: #64748b; border-color: #334155; }
.pipe.armed .pipe-step b { color: #64748b; transition: color 0.35s; }
.pipe.armed.run::after { transform: none; }
.pipe.armed.run .pipe-dot { background: #10b981; color: #022c22; border-color: #10b981; }
.pipe.armed.run .pipe-step:last-child .pipe-dot { background: #34d399; border-color: #34d399; }
.pipe.armed.run .pipe-step b { color: #fff; }
.pipe.armed.run .pipe-step:nth-child(2) .pipe-dot, .pipe.armed.run .pipe-step:nth-child(2) b { transition-delay: 0.6s; }
.pipe.armed.run .pipe-step:nth-child(3) .pipe-dot, .pipe.armed.run .pipe-step:nth-child(3) b { transition-delay: 1.2s; }
.pipe.armed.run .pipe-step:nth-child(4) .pipe-dot, .pipe.armed.run .pipe-step:nth-child(4) b { transition-delay: 1.8s; }
.pipe.armed.run .pipe-step:nth-child(5) .pipe-dot, .pipe.armed.run .pipe-step:nth-child(5) b { transition-delay: 2.4s; }

/* ── Why brands use it ── */
.why-4 { display: grid; gap: 20px; }
@media (min-width: 640px) { .why-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .why-4 { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.why-4 .care-tile { padding: 28px; }
.why-4 .care-tile h3 { font-size: 1.35rem; }

/* ── Free band ── */
.free-band {
  margin-top: 56px; border-radius: 20px; overflow: hidden; position: relative;
  display: grid; gap: 28px; padding: 40px 28px;
  background: radial-gradient(110% 140% at 0% 0%, #065f46 0%, #022c22 45%, #0d0a1c 100%);
  color: #d1fae5;
}
@media (min-width: 900px) {
  .free-band { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 48px; padding: 56px 56px; }
}
.free-copy, .free-points { position: relative; z-index: 1; }
.free-title { font-weight: 400; font-size: 2.5rem; line-height: 1.05; color: #fff; letter-spacing: -0.01em; }
@media (min-width: 768px) { .free-title { font-size: 3.5rem; } }
.free-text { margin-top: 16px; font-size: 17px; color: rgba(209, 250, 229, 0.8); max-width: 460px; }
.free-points { list-style: none; display: grid; gap: 12px; }
.free-points li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: #fff; }
.free-points svg {
  width: 26px; height: 26px; padding: 6px; border-radius: 50%; flex-shrink: 0;
  background: rgba(52, 211, 153, 0.18); color: #6ee7b7;
}
.free-points .free-cta { margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
  .pipe::after, .pipe-dot, .pipe-step b { transition: none !important; }
}
