/* The Over to Flo logo, the same one as overtoflo.ai: the animated
   "inbox to zero" mark, the wordmark and the strap line. Used by the staff
   console and, inlined by src/brand.js, by the pages clients see when they
   connect their email. Colours are literal so it looks the same everywhere. */
@font-face { font-family: 'Inter'; src: url(fonts/inter-latin-900-normal.woff2) format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url(fonts/inter-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

.cd-logo { display: inline-flex; align-items: center; gap: 11px; color: #0b081c; text-decoration: none; }
.cd-logo .cd-mark { width: 44px; height: 44px; flex: none; }
.cd-logo .cd-text { display: flex; flex-direction: column; gap: 5px; }
.cd-logo .cd-word { display: flex; align-items: baseline; white-space: nowrap; font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif; font-weight: 900; font-size: 21px; line-height: 1; letter-spacing: .2px; text-transform: uppercase; color: #0b081c; }
.cd-logo .cd-word span + span { color: #5862ff; margin-left: .28em; }
.cd-logo .cd-word sup { font-size: 8px; letter-spacing: 0; margin-left: 1px; vertical-align: top; position: relative; top: -1px; }
.cd-logo .cd-strap { font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif; font-weight: 700; font-size: 8.5px; line-height: 1; letter-spacing: .21em; text-transform: uppercase; color: #5f6479; white-space: nowrap; }

/* Three sheets lift out of the tray, the red badge counts 3, 2, 1 and turns
   into a mint tick. Five-second loop; still for reduced motion. */
.cd-mark * { transform-box: fill-box; transform-origin: center; }
.cd-mark .cdm-s1 { animation: cdmOut1 5s ease infinite; }
.cd-mark .cdm-s2 { animation: cdmOut2 5s ease infinite; }
.cd-mark .cdm-s3 { animation: cdmOut3 5s ease infinite; }
.cd-mark .cdm-n3 { animation: cdmN3 5s steps(1) infinite; }
.cd-mark .cdm-n2 { animation: cdmN2 5s steps(1) infinite; opacity: 0; }
.cd-mark .cdm-n1 { animation: cdmN1 5s steps(1) infinite; opacity: 0; }
.cd-mark .cdm-red { animation: cdmRed 5s ease infinite; }
.cd-mark .cdm-ok { animation: cdmOk 5s cubic-bezier(.3,1.6,.5,1) infinite; opacity: 0; }
@keyframes cdmOut1 { 0%,14% { opacity: 1; transform: none; } 22% { opacity: 0; transform: translateY(-12px) rotate(10deg); } 92% { opacity: 0; transform: translateY(4px); } 100% { opacity: 1; transform: none; } }
@keyframes cdmOut2 { 0%,32% { opacity: 1; transform: none; } 40% { opacity: 0; transform: translateY(-12px) rotate(-10deg); } 94% { opacity: 0; transform: translateY(4px); } 100% { opacity: 1; transform: none; } }
@keyframes cdmOut3 { 0%,50% { opacity: 1; transform: none; } 58% { opacity: 0; transform: translateY(-12px) rotate(8deg); } 96% { opacity: 0; transform: translateY(4px); } 100% { opacity: 1; transform: none; } }
@keyframes cdmN3 { 0% { opacity: 1; } 20% { opacity: 0; } 98% { opacity: 1; } }
@keyframes cdmN2 { 0% { opacity: 0; } 20% { opacity: 1; } 38% { opacity: 0; } }
@keyframes cdmN1 { 0% { opacity: 0; } 38% { opacity: 1; } 56% { opacity: 0; } }
@keyframes cdmRed { 0%,55% { opacity: 1; transform: scale(1); } 60%,94% { opacity: 0; transform: scale(.4); } 100% { opacity: 1; transform: scale(1); } }
@keyframes cdmOk { 0%,58% { opacity: 0; transform: scale(.3); } 66% { opacity: 1; transform: scale(1); } 90% { opacity: 1; transform: scale(1); } 96%,100% { opacity: 0; transform: scale(.3); } }
@media (prefers-reduced-motion: reduce) {
  .cd-mark * { animation: none !important; }
  .cd-mark .cdm-s1, .cd-mark .cdm-s2, .cd-mark .cdm-s3, .cd-mark .cdm-red { opacity: 0; }
  .cd-mark .cdm-ok { opacity: 1; }
}
