/* Recoverly branded vector kit: shared presentation for public, account, admin and authentication screens. */
:root {
  --r-brand-blue: #167cff;
  --r-brand-cobalt: #2547f5;
  --r-brand-violet: #693cff;
  --r-brand-magenta: #d92fff;
  --r-brand-cyan: #31ddf5;
  --r-brand-gradient: linear-gradient(118deg, #167cff 0%, #4a4cf5 38%, #8735ff 66%, #d92fff 88%, #31ddf5 120%);
  --r-kit-border: rgba(129, 143, 214, .18);
  --r-kit-surface: rgba(15, 22, 53, .76);
  --r-kit-text: #eff2ff;
  --r-kit-muted: #a7b1d1;
}

/* Decorative light field is intentionally pointer-free and sits beneath application content. */
body:has(.recoverly-workspace-band), body:has(.recoverly-auth-art) { position: relative; isolation: isolate; }
body:has(.recoverly-workspace-band)::before, body:has(.recoverly-auth-art)::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 12% 0%, rgba(22,124,255,.10), transparent 32%),
              radial-gradient(ellipse at 94% 16%, rgba(217,47,255,.08), transparent 34%),
              url("../../../images/recoverly/brand-wave-pattern.svg") right bottom / min(680px, 68vw) auto no-repeat;
  opacity: .65;
}

/* Shared, reusable icon chips. Icons inherit the accessible foreground colour. */
.recoverly-icon-tile { display: inline-grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border: 1px solid rgba(132,145,255,.28); border-radius: 14px; color: #fff; background: var(--r-brand-gradient); box-shadow: 0 8px 24px rgba(91,60,255,.20), inset 0 1px rgba(255,255,255,.24); }
.recoverly-icon-tile svg, .recoverly-workspace-tags svg, .recoverly-band-actions svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.recoverly-section-eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #7f8aff; font-size: .68rem; line-height: 1.2; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.recoverly-mini-mark { display: inline-block; width: 20px; height: 20px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(105,60,255,.2)); }
.recoverly-live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg,var(--r-brand-cyan),var(--r-brand-blue)); box-shadow: 0 0 0 4px rgba(49,221,245,.10), 0 0 18px rgba(49,221,245,.45); }

/* Artwork on each shared public page header. The route chooses a contextual illustration. */
.recoverly-page-hero-art { position: absolute; right: max(2.8%, calc((100vw - 1280px)/2)); top: 50%; width: clamp(165px, 26vw, 340px); height: auto; transform: translateY(-38%); z-index: 1; opacity: .42; pointer-events: none; filter: drop-shadow(0 24px 56px rgba(70,58,255,.17)); }
html[dir="rtl"] .recoverly-page-hero-art { right: auto; left: max(2.8%, calc((100vw - 1280px)/2)); }

/* Public-wide illustrated feature band. It is inserted by the shared frontend layout, so every public page gets branded art. */
.recoverly-ecosystem-band { position: relative; isolation: isolate; overflow: hidden; margin: clamp(2rem, 5vw, 5rem) auto; width: min(1240px, calc(100% - 2.5rem)); border: 1px solid var(--r-kit-border); border-radius: 30px; background: linear-gradient(118deg, rgba(15,22,53,.96), rgba(22,24,67,.91) 58%, rgba(45,17,76,.91)); color: var(--r-kit-text); box-shadow: 0 28px 90px rgba(10,12,44,.20), inset 0 1px rgba(255,255,255,.06); }
.recoverly-ecosystem-band::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .28; background: url("../../../images/recoverly/brand-wave-pattern.svg") left bottom / 54% auto no-repeat, radial-gradient(circle at 96% 4%, rgba(217,47,255,.20), transparent 38%); }
.recoverly-ecosystem-grid { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .18; background-image: linear-gradient(rgba(160,174,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(160,174,255,.16) 1px, transparent 1px); background-size: 38px 38px; mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%); }
.recoverly-ecosystem-inner { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(270px,.92fr); align-items: center; gap: clamp(1rem,4vw,3.5rem); min-height: 340px; padding: clamp(1.5rem,4vw,3.6rem); }
.recoverly-ecosystem-copy { position: relative; z-index: 2; }
.recoverly-ecosystem-copy h2 { max-width: 640px; margin: 17px 0 13px; color: #fff !important; font-size: clamp(1.85rem, 3.5vw, 3.2rem); line-height: 1.07; letter-spacing: -.045em; font-weight: 800; }
.recoverly-ecosystem-copy p { max-width: 570px; margin: 0; color: #b7c0df !important; font-size: .98rem; line-height: 1.8; }
.recoverly-value-points { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 27px; }
.recoverly-value-point { display: flex; align-items: center; gap: 10px; min-width: 0; }
.recoverly-value-point .recoverly-icon-tile { width: 38px; height: 38px; border-radius: 12px; }
.recoverly-value-point .recoverly-icon-tile svg { width: 18px; height: 18px; }
.recoverly-value-point strong, .recoverly-value-point small { display: block; }
.recoverly-value-point strong { color: #f5f7ff; font-size: .75rem; line-height: 1.3; }
.recoverly-value-point small { margin-top: 3px; color: #9ea9d0; font-size: .65rem; line-height: 1.35; }
.recoverly-band-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.recoverly-band-primary, .recoverly-band-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 45px; padding: 0 18px; border-radius: 14px; font-size: .82rem; font-weight: 800; text-decoration: none !important; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.recoverly-band-primary { color: #fff !important; background: var(--r-brand-gradient); box-shadow: 0 10px 28px rgba(96,62,255,.27), inset 0 1px rgba(255,255,255,.2); }
.recoverly-band-primary:hover { transform: translateY(-2px); box-shadow: 0 15px 34px rgba(96,62,255,.36); }
.recoverly-band-primary svg { width: 18px; height: 18px; }
.recoverly-band-secondary { color: #d9defd !important; background: rgba(255,255,255,.04); border: 1px solid rgba(182,192,255,.2); }
.recoverly-band-secondary:hover { transform: translateY(-2px); border-color: rgba(161,130,255,.62); }
.recoverly-ecosystem-art-wrap { position: relative; display: grid; place-items: center; min-width: 0; }
.recoverly-ecosystem-art { display: block; width: min(100%, 460px); height: auto; position: relative; z-index: 1; filter: drop-shadow(0 24px 42px rgba(63,55,255,.14)); animation: recoverly-gentle-float 8s ease-in-out infinite; }
.recoverly-art-orbit { position: absolute; width: 66%; aspect-ratio: 1; border: 1px solid rgba(115,124,255,.24); border-radius: 50%; transform: rotate(-24deg) scaleY(.72); }
.recoverly-art-orbit-two { width: 82%; transform: rotate(29deg) scaleY(.61); border-color: rgba(217,47,255,.24); }
.recoverly-art-caption { position: absolute; bottom: 2%; right: 2%; z-index: 2; display: flex; gap: 8px; align-items: center; padding: 10px 13px; border: 1px solid rgba(164,176,255,.19); border-radius: 13px; background: rgba(9,15,42,.72); color: #c9d2f5; font-size: .68rem; backdrop-filter: blur(12px); }
.recoverly-caption-spark { color: #eb75ff; }
@keyframes recoverly-gentle-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* A compact visual band at the bottom of all account and admin screens. */
.recoverly-workspace-band { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0,1fr) 170px; align-items: center; gap: 22px; min-height: 148px; margin-top: 28px; padding: 22px 25px; border: 1px solid rgba(111,131,230,.20); border-radius: 24px; background: linear-gradient(110deg, rgba(15,23,58,.92), rgba(24,24,72,.88) 60%, rgba(48,19,76,.86)); box-shadow: 0 18px 45px rgba(5,7,30,.13), inset 0 1px rgba(255,255,255,.06); color: #f1f4ff; }
.recoverly-workspace-band::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url("../../../images/recoverly/brand-wave-pattern.svg") left center / 55% auto no-repeat; opacity: .17; }
.recoverly-workspace-copy h2 { margin: 9px 0 5px; color: #fff !important; font-size: clamp(1.1rem,2vw,1.55rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.2; }
.recoverly-workspace-copy p { margin: 0; max-width: 720px; color: #aab5d9 !important; font-size: .82rem; line-height: 1.6; }
.recoverly-workspace-tags { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 13px; }
.recoverly-workspace-tags span { display: inline-flex; align-items: center; gap: 6px; color: #d1d8f5; font-size: .68rem; }
.recoverly-workspace-tags svg { width: 14px; height: 14px; color: #9586ff; }
.recoverly-workspace-artbox { position: relative; display: grid; place-items: center; min-width: 0; }
.recoverly-workspace-artbox img { width: 100%; max-width: 175px; height: auto; filter: drop-shadow(0 13px 28px rgba(84,66,255,.22)); }

/* Auth layouts get custom illustrations without changing form flow or authentication logic. */
.recoverly-auth-art { position: absolute; right: 3%; bottom: 1%; width: clamp(140px, 24vw, 320px); max-height: 45%; object-fit: contain; opacity: .28; pointer-events: none; filter: drop-shadow(0 25px 60px rgba(65,55,255,.2)); }
.recoverly-auth-visual-art { position: absolute; z-index: 0; width: min(82%, 580px); height: auto; opacity: .30; pointer-events: none; transform: translateY(12%); }

/* Ensure SVG mark and gradients never override text or active-state colours. */
.recoverly-brand-svg { display: inline-block; width: 1.2em; height: 1.2em; flex: 0 0 auto; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 960px) {
  .recoverly-page-hero-art { right: -2%; width: 200px; opacity: .24; }
  .recoverly-ecosystem-inner { grid-template-columns: minmax(0,1fr) minmax(220px,.72fr); }
  .recoverly-value-points { grid-template-columns: 1fr; gap: 10px; }
  .recoverly-value-point small { font-size: .68rem; }
}
@media (max-width: 680px) {
  .recoverly-page-hero-art { width: 170px; top: 15%; right: -30px; opacity: .16; }
  .recoverly-ecosystem-band { width: calc(100% - 1.25rem); margin: 2rem auto; border-radius: 22px; }
  .recoverly-ecosystem-inner { grid-template-columns: 1fr; padding: 23px 19px 17px; gap: 0; }
  .recoverly-ecosystem-copy h2 { font-size: clamp(1.75rem,8vw,2.45rem); }
  .recoverly-ecosystem-copy p { font-size: .9rem; }
  .recoverly-value-points { grid-template-columns: 1fr; }
  .recoverly-band-actions { display: grid; grid-template-columns: 1fr; }
  .recoverly-band-primary, .recoverly-band-secondary { width: 100%; }
  .recoverly-ecosystem-art-wrap { margin-top: -3px; max-height: 255px; overflow: hidden; }
  .recoverly-ecosystem-art { width: min(85%,330px); }
  .recoverly-art-caption { bottom: 5px; right: 2px; font-size: .58rem; }
  .recoverly-workspace-band { grid-template-columns: minmax(0,1fr) 95px; gap: 8px; min-height: 130px; padding: 17px 14px; border-radius: 19px; }
  .recoverly-workspace-band .recoverly-section-eyebrow { font-size: .58rem; letter-spacing: .11em; }
  .recoverly-workspace-copy h2 { font-size: 1rem; }
  .recoverly-workspace-copy p { font-size: .72rem; }
  .recoverly-workspace-tags { gap: 6px 10px; }
  .recoverly-workspace-tags span { font-size: .58rem; }
  .recoverly-workspace-tags span:nth-child(3) { display: none; }
  .recoverly-workspace-artbox img { max-width: 105px; }
  .recoverly-auth-art { width: 150px; opacity: .19; }
}
@media (prefers-reduced-motion: reduce) { .recoverly-ecosystem-art { animation: none; } }
